diff options
| author | Volker Lendecke <vl@samba.org> | 2013-11-09 18:50:16 +0100 |
|---|---|---|
| committer | Ira Cooper <ira@samba.org> | 2013-11-11 21:04:08 +0100 |
| commit | 4ddb9cfd955b77bfac57bcae93f734dc2ffb0676 (patch) | |
| tree | 7e7fc22a99e9453f902184a251eb82869e9501e9 /source3/utils | |
| parent | 55b0a16e9b08cb4bf5cf32307009b889b4288f3a (diff) | |
| download | samba-4ddb9cfd955b77bfac57bcae93f734dc2ffb0676.tar.gz samba-4ddb9cfd955b77bfac57bcae93f734dc2ffb0676.tar.xz samba-4ddb9cfd955b77bfac57bcae93f734dc2ffb0676.zip | |
net: Fix CID 1035403 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3/utils')
| -rw-r--r-- | source3/utils/net_rpc_registry.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_registry.c b/source3/utils/net_rpc_registry.c index 9445e09c7d..cc4eaa7eaa 100644 --- a/source3/utils/net_rpc_registry.c +++ b/source3/utils/net_rpc_registry.c @@ -1183,7 +1183,10 @@ static void dump_values( REGF_NK_REC *nk ) switch ( nk->values[i].type ) { case REG_SZ: blob = data_blob_const(nk->values[i].data, data_size); - pull_reg_sz(talloc_tos(), &blob, &data_str); + if (!pull_reg_sz(talloc_tos(), &blob, + &data_str)) { + data_str = NULL; + } if (!data_str) { break; } |
