From: Jeremy Allison Date: Tue, 29 Aug 2006 01:11:02 +0000 (+0000) Subject: r17902: Fix possible null deref caught by Stanford checker. X-Git-Tag: samba-4.0.0alpha6~801^2~7787 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8;p=thirdparty%2Fsamba.git r17902: Fix possible null deref caught by Stanford checker. Jeremy. (This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58) --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index fb07dae427d..3cf8cae320a 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1613,7 +1613,9 @@ static BOOL cli_get_ea_list(struct cli_state *cli, struct ea_struct *ea_list; *pnum_eas = 0; - *pea_list = NULL; + if (pea_list) { + *pea_list = NULL; + } if (!cli_send_trans(cli, SMBtrans2, NULL, /* Name */