]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-smb-name-deleted-20080109
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 9 Jan 2008 15:21:22 +0000 (15:21 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 9 Jan 2008 15:21:22 +0000 (15:21 +0000)
LICENSE MIT

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

(cherry picked from commit a1b7be4ac3f073a2d64f46649e54a1ff99d2567b)

src/WINNT/afsd/smb.c

index 1549f302ac61dba97060f975694f7d4b4c4f60e0..52db487782030b63fe5f8e96bc5e16b91d514f02 100644 (file)
@@ -8486,7 +8486,13 @@ void smb_Listener(void *parmp)
 #else /* DJGPP */
         code = Netbios(ncbp, dos_ncb);
 #endif
-       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);