diff options
author | Günther Deschner <gd@samba.org> | 2008-04-16 00:14:52 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-16 00:15:39 +0200 |
commit | 46e6bc1153dbcf406f873a3e082582a44cd4467e (patch) | |
tree | 2e25c6b66f368e04f680ae64d9ac9058a144d490 /source3 | |
parent | b7bb61eff019fc529067a10e63dec5340cebff8d (diff) | |
download | samba-46e6bc1153dbcf406f873a3e082582a44cd4467e.tar.gz samba-46e6bc1153dbcf406f873a3e082582a44cd4467e.tar.bz2 samba-46e6bc1153dbcf406f873a3e082582a44cd4467e.zip |
libnetapi: do not overwrite status in libnetapi_get_error_string().
Guenther
(This used to be commit 143e2b573043dd04a6404fc91d781e8a727bd092)
Diffstat (limited to 'source3')
-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 9e309634b4..941e323183 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -253,8 +253,9 @@ NET_API_STATUS libnetapi_set_error_string(struct libnetapi_ctx *ctx, ****************************************************************/ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, - NET_API_STATUS status) + NET_API_STATUS status_in) { + NET_API_STATUS status; struct libnetapi_ctx *tmp_ctx = ctx; if (!tmp_ctx) { @@ -268,7 +269,7 @@ const char *libnetapi_get_error_string(struct libnetapi_ctx *ctx, return tmp_ctx->error_string; } - return libnetapi_errstr(status); + return libnetapi_errstr(status_in); } /**************************************************************** |