uninitialised pointer being freed if lookupnames failed. oops.
authorLuke Leighton <lkcl@samba.org>
Thu, 11 Feb 1999 17:25:26 +0000 (17:25 +0000)
committerLuke Leighton <lkcl@samba.org>
Thu, 11 Feb 1999 17:25:26 +0000 (17:25 +0000)
source/rpcclient/cmd_lsarpc.c

index de41f286f73bb6c43b0994a69153173aa9dedc3e..be148a7f1d86bce08b8698d63fcbedebd8e2541b 100644 (file)
@@ -132,7 +132,7 @@ void cmd_lsa_lookup_names(struct client_info *info)
        fstring srv_name;
        int num_names = 0;
        const char *names[10];
-       DOM_SID *sids;
+       DOM_SID *sids = NULL;
        int num_sids = 0;
 #if 0
        DOM_SID sid[10];