diff options
author | Jeremy Allison <jra@samba.org> | 2006-08-29 01:11:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:58 -0500 |
commit | ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8 (patch) | |
tree | 56f05d7894ed6b9b615652111e67bb175e874145 /source3 | |
parent | 9f0c2827a4e08cb386453d1ce740f4b559b557fd (diff) | |
download | samba-ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8.tar.gz samba-ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8.tar.bz2 samba-ed132d87ced2f9b09eb0b81ac1aa29b4a5e29eb8.zip |
r17902: Fix possible null deref caught by Stanford checker.
Jeremy.
(This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clifile.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 */ |