windows-smb-name-deleted-20080109
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 9 Jan 2008 15:25:07 +0000 (15:25 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 9 Jan 2008 15:25:07 +0000 (15:25 +0000)
LICENSE MIT

if the smb_Listener receives NRC_NAMERR (name deleted) it must be because
an smb shutdown has occurred.  do not panic.

src/WINNT/afsd/smb.c

index 78a881f..31d981c 100644 (file)
@@ -8086,7 +8086,13 @@ void smb_Listener(void *parmp)
 
         code = Netbios(ncbp);
 
-       if (code == NRC_BRIDGE) {
+        if (code == NRC_NAMERR) {
+         /* An smb shutdown must have taken place */
+         osi_Log2(smb_logp,
+                  "NCBLISTEN lana=%d failed with NRC_NAMERR.",
+                  ncbp->ncb_lana_num, code);
+         continue;
+        } else if (code == NRC_BRIDGE) {
            int lanaRemaining = 0;
 
            lock_ObtainMutex(&smb_StartedLock);