summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-20 13:25:31 +0200
committerVolker Lendecke <vl@samba.org>2011-05-20 13:26:04 +0200
commitaf9afe9f4fc21b9c800bb14c65cbfecb155d3519 (patch)
treedfb771defb707902ca7968221864d1fdb56bbf7d /source3/lib/netapi
parentf043babcbdef26980a607de517be05092bf037a9 (diff)
downloadsamba-af9afe9f4fc21b9c800bb14c65cbfecb155d3519.tar.gz
samba-af9afe9f4fc21b9c800bb14c65cbfecb155d3519.tar.bz2
samba-af9afe9f4fc21b9c800bb14c65cbfecb155d3519.zip
s3: Fix Coverity ID 2573: UNUSED_VALUE
Andrew B., please check!
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/netapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index 06e353d6ce..1d34934565 100644
--- 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;
}