From: Derrick Brashear Date: Tue, 9 Feb 2010 18:54:30 +0000 (-0500) Subject: ensure secObj is initialized in afs_ConnBySA X-Git-Tag: openafs-devel-1_5_72~13 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=880d35f8370ffc978bbcff3b3218f31a945d8555;p=packages%2Fo%2Fopenafs.git ensure secObj is initialized in afs_ConnBySA NULL it so we don't compare against garbage Change-Id: Id80ab21a9a227ec8fd09dbc9a822fd1ce873b333 Reviewed-on: http://gerrit.openafs.org/1281 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/afs/afs_conn.c b/src/afs/afs_conn.c index 315511773..0a6667979 100644 --- a/src/afs/afs_conn.c +++ b/src/afs/afs_conn.c @@ -67,7 +67,7 @@ unsigned int VNOSERVERS = 0; */ static struct rx_securityClass * afs_pickSecurityObject(struct afs_conn *conn, int *secLevel) { - struct rx_securityClass *secObj; + struct rx_securityClass *secObj = NULL; /* Do we have tokens ? */ if (conn->user->vid != UNDEFVID) {