diff options
author | Volker Lendecke <vl@samba.org> | 2011-05-20 13:25:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-05-20 13:26:04 +0200 |
commit | af9afe9f4fc21b9c800bb14c65cbfecb155d3519 (patch) | |
tree | dfb771defb707902ca7968221864d1fdb56bbf7d /source3/lib/netapi | |
parent | f043babcbdef26980a607de517be05092bf037a9 (diff) | |
download | samba-af9afe9f4fc21b9c800bb14c65cbfecb155d3519.tar.gz samba-af9afe9f4fc21b9c800bb14c65cbfecb155d3519.tar.xz 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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 06e353d6ce6..1d349345653 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; } |