]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-uninitialized-vars-20060627
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 27 Jun 2006 22:56:12 +0000 (22:56 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 27 Jun 2006 22:56:12 +0000 (22:56 +0000)
uninitialized pointers when dereferenced do bad things

(cherry picked from commit a8e481ddd92744944d2b06fd5c8ed28383297f6a)

src/WINNT/afsd/cm_callback.c

index 9b568e955bcb82e72130e2b96d6524a8490731f3..b6eca3927593f3e092f8a7e55df364027e27094e 100644 (file)
@@ -1595,7 +1595,7 @@ long cm_GetCallback(cm_scache_t *scp, struct cm_user *userp,
                     struct cm_req *reqp, long flags)
 {
     long code;
-    cm_conn_t *connp;
+    cm_conn_t *connp = NULL;
     AFSFetchStatus afsStatus;
     AFSVolSync volSync;
     AFSCallBack callback;
@@ -1604,7 +1604,7 @@ long cm_GetCallback(cm_scache_t *scp, struct cm_user *userp,
     int mustCall;
     long sflags;
     cm_fid_t sfid;
-    struct rx_connection * callp;
+    struct rx_connection * callp = NULL;
 
     osi_Log4(afsd_logp, "GetCallback scp 0x%x cell %d vol %d flags %lX", 
              scp, scp->fid.cell, scp->fid.volume, flags);