git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e935c5
)
librpc: Fix a "ignoring asprint return" warning
author
Volker Lendecke
<vl@samba.org>
Tue, 7 Jul 2015 13:36:07 +0000
(15:36 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 8 Jul 2015 22:42:15 +0000
(
00:42
+0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/librpc/rpc/dcerpc.c
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/dcerpc.c
b/source4/librpc/rpc/dcerpc.c
index 6e3410bd238d18fb36e2e68b2dee06f847f72a19..6ce0d352f1d68f1be55ba135d343b07eec234fe4 100644
(file)
--- a/
source4/librpc/rpc/dcerpc.c
+++ b/
source4/librpc/rpc/dcerpc.c
@@
-485,10
+485,12
@@
static void dcerpc_bh_ndr_pull_failed(struct dcerpc_binding_handle *h,
for (i=0;i<num_examples;i++) {
char *name=NULL;
- asprintf(&name, "%s/rpclog/%s-out.%d",
- hs->p->conn->packet_log_dir,
- call->name, i);
- if (name == NULL) {
+ int ret;
+
+ ret = asprintf(&name, "%s/rpclog/%s-out.%d",
+ hs->p->conn->packet_log_dir,
+ call->name, i);
+ if (ret == -1) {
return;
}
if (!file_exist(name)) {