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 | e8b0649fe167c3446eb6121ed666254fdf53aa58 (patch) | |
tree | 3b8f12f93296dc72f3b18fa67169983c70aaca9b /source/libsmb/clifile.c | |
parent | 4e99606ec16b978a76219b5362a23a7b06ee5468 (diff) | |
download | samba-e8b0649fe167c3446eb6121ed666254fdf53aa58.tar.gz samba-e8b0649fe167c3446eb6121ed666254fdf53aa58.tar.xz samba-e8b0649fe167c3446eb6121ed666254fdf53aa58.zip |
r17902: Fix possible null deref caught by Stanford checker.
Jeremy.
Diffstat (limited to 'source/libsmb/clifile.c')
-rw-r--r-- | source/libsmb/clifile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/libsmb/clifile.c b/source/libsmb/clifile.c index fb07dae427d..3cf8cae320a 100644 --- a/source/libsmb/clifile.c +++ b/source/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 */ |