s3: Initialize output vars in parse_ea_blob
authorVolker Lendecke <vl@samba.org>
Sun, 24 Oct 2010 11:27:33 +0000 (13:27 +0200)
committerVolker Lendecke <vlendec@samba.org>
Sun, 24 Oct 2010 12:22:22 +0000 (12:22 +0000)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Oct 24 12:22:22 UTC 2010 on sn-devel-104

source3/libsmb/clifile.c

index b57cba501c9393128039b170ea2236f6e2470f09..6ce884adf56755cc222d5fec65bfbdc4aae71e4a 100644 (file)
@@ -4227,6 +4227,7 @@ static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata,
        if (ea_size == 0) {
                /* No EA's present. */
                *pnum_eas = 0;
+               *pea_list = NULL;
                return true;
        }
 
@@ -4249,6 +4250,7 @@ static bool parse_ea_blob(TALLOC_CTX *ctx, const uint8_t *rdata,
 
        if (num_eas == 0) {
                *pnum_eas = 0;
+               *pea_list = NULL;
                return true;
        }