diff options
author | Andreas Schneider <asn@samba.org> | 2013-02-18 18:00:38 +0100 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2013-02-22 16:36:12 +0100 |
commit | 318ecbc2085d2eaee9d24a77c1c3496185af2bdd (patch) | |
tree | d23b06bd360c9e938f30e9798c946d265eb37484 /source4 | |
parent | e50874606f235cf9d8cf159997b97fcb6ad74ce2 (diff) | |
download | samba-318ecbc2085d2eaee9d24a77c1c3496185af2bdd.tar.gz samba-318ecbc2085d2eaee9d24a77c1c3496185af2bdd.tar.bz2 samba-318ecbc2085d2eaee9d24a77c1c3496185af2bdd.zip |
s4-libcli: Check return code of smbcli_request_setup().
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source4')
-rw-r--r-- | source4/libcli/raw/rawfsinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/raw/rawfsinfo.c b/source4/libcli/raw/rawfsinfo.c index 08f68dd46c..9c03e14466 100644 --- a/source4/libcli/raw/rawfsinfo.c +++ b/source4/libcli/raw/rawfsinfo.c @@ -33,6 +33,9 @@ static struct smbcli_request *smb_raw_dskattr_send(struct smbcli_tree *tree, struct smbcli_request *req; req = smbcli_request_setup(tree, SMBdskattr, 0, 0); + if (req == NULL) { + return NULL; + } if (!smbcli_request_send(req)) { smbcli_request_destroy(req); |