]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-callback-missing-bang-20080108
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 8 Jan 2008 21:27:54 +0000 (21:27 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 8 Jan 2008 21:27:54 +0000 (21:27 +0000)
LICENSE MIT

Insert a missing bang that results in a null pointer dereference
when processing a callback from an unrecognized server.

(cherry picked from commit 69c9ab66a41236e987b44af9a3cb141adb1c2817)

src/WINNT/afsd/cm_callback.c

index f0efba3bb6e08ea7e7990857c5cf5f4d77a8847f..761411c5447031aae4e31095a3697aa1abecbfef 100644 (file)
@@ -371,7 +371,7 @@ SRXAFSCB_CallBack(struct rx_call *callp, AFSCBFids *fidsArrayp, AFSCBs *cbsArray
         if (tsp)
             cellp = tsp->cellp;
 
-        if (cellp)
+        if (!cellp)
             osi_Log2(afsd_logp, "SRXAFSCB_CallBack from host 0x%x port %d",
                      ntohl(host),
                      ntohs(port));