r17902: Fix possible null deref caught by Stanford checker.
authorJeremy Allison <jra@samba.org>
Tue, 29 Aug 2006 01:11:02 +0000 (01:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:58 +0000 (11:38 -0500)
Jeremy.
(This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58)

source3/libsmb/clifile.c

index fb07dae427dbf846a41d150388d5a151be352ae5..3cf8cae320afc99af6094ac05f54e3d964a98bc9 100644 (file)
@@ -1613,7 +1613,9 @@ static BOOL cli_get_ea_list(struct cli_state *cli,
        struct ea_struct *ea_list;
 
        *pnum_eas = 0;
        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 */
 
        if (!cli_send_trans(cli, SMBtrans2,
                        NULL,           /* Name */