windows-callback-missing-bang-20080108
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 8 Jan 2008 21:26:46 +0000 (21:26 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 8 Jan 2008 21:26:46 +0000 (21:26 +0000)
LICENSE MIT

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

src/WINNT/afsd/cm_callback.c

index 2212359..baf23b2 100644 (file)
@@ -367,7 +367,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));