git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f043bab
)
s3: Fix Coverity ID 2573: UNUSED_VALUE
author
Volker Lendecke
<vl@samba.org>
Fri, 20 May 2011 11:25:31 +0000
(13:25 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 20 May 2011 11:26:04 +0000
(13:26 +0200)
Andrew B., please check!
source3/lib/netapi/netapi.c
patch
|
blob
|
history
diff --git
a/source3/lib/netapi/netapi.c
b/source3/lib/netapi/netapi.c
index 06e353d6ce6367986348e5d09c8b381776c04164..1d349345653e7a3ce2374450456d7b7cf769cb2a 100644
(file)
--- a/
source3/lib/netapi/netapi.c
+++ b/
source3/lib/netapi/netapi.c
@@
-293,9
+293,10
@@
char *libnetapi_errstr(NET_API_STATUS status)
if (status & 0xc0000000) {
ret = talloc_strdup(NULL,
get_friendly_nt_error_msg(NT_STATUS(status)));
+ } else {
+ ret = talloc_strdup(NULL,
+ get_friendly_werror_msg(W_ERROR(status)));
}
-
- ret = talloc_strdup(NULL, get_friendly_werror_msg(W_ERROR(status)));
TALLOC_FREE(frame);
return ret;
}