diff options
author | Volker Lendecke <vl@samba.org> | 2018-08-08 10:14:26 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-08-08 23:10:22 +0200 |
commit | 0c8174cf9221ce5635073bb4a29e782f81f67dc5 (patch) | |
tree | 2bc02d5ef1bd42c19126d89e1840f7b3c33514c8 /source3 | |
parent | ee3dd90a76f649b3bec5063cddf9293ed4d5a82c (diff) | |
download | samba-0c8174cf9221ce5635073bb4a29e782f81f67dc5.tar.gz |
libsmb: Fix CID 1438243 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Aug 8 23:10:22 CEST 2018 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cliquota.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/libsmb/cliquota.c b/source3/libsmb/cliquota.c index 8efd2bbe38a..52f98eb9e8f 100644 --- a/source3/libsmb/cliquota.c +++ b/source3/libsmb/cliquota.c @@ -649,7 +649,14 @@ NTSTATUS fill_quota_buffer(TALLOC_CTX *mem_ctx, /* pidl will align to 8 bytes due to 8 byte members*/ /* Remember how much align padding we've used. */ padding = qndr->offset; - ndr_push_align(qndr, 8); + + err = ndr_push_align(qndr, 8); + if (!NDR_ERR_CODE_IS_SUCCESS(err)) { + DBG_DEBUG("ndr_push_align returned %s\n", + ndr_map_error2string(err)); + return ndr_map_error2ntstatus(err); + } + padding = qndr->offset - padding; /* |