From ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 Aug 2006 01:11:02 +0000 Subject: r17902: Fix possible null deref caught by Stanford checker. Jeremy. (This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58) --- source3/libsmb/clifile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index fb07dae427..3cf8cae320 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 */ -- cgit