From a71d268114abf0344251e6dbfa30a320f07eba8f Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 11 Feb 1999 17:25:26 +0000 Subject: uninitialised pointer being freed if lookupnames failed. oops. (This used to be commit d77de868588b6291353fa7a426b6e5da4b5f2c49) --- source3/rpcclient/cmd_lsarpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index de41f286f7..be148a7f1d 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -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]; -- cgit