diff options
author | Jeremy Allison <jra@samba.org> | 2004-11-30 22:57:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:53:28 -0500 |
commit | bd4391033113abc592b1a29b53eaa6d7415bb28e (patch) | |
tree | be9a23a033348de77368f4c11e4c9b12c18f3cf3 | |
parent | e7a0aabc2e50306983794c79e23daaf92993db7b (diff) | |
download | samba-bd4391033113abc592b1a29b53eaa6d7415bb28e.tar.gz samba-bd4391033113abc592b1a29b53eaa6d7415bb28e.tar.bz2 samba-bd4391033113abc592b1a29b53eaa6d7415bb28e.zip |
r4023: Code tidyup to fix bug #2098.
Jeremy.
(This used to be commit ebaf21e3e289d3570f20b22e00555eaebe060063)
-rw-r--r-- | source3/libads/ads_status.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c index 463f647f9c..79e07a9b00 100644 --- a/source3/libads/ads_status.c +++ b/source3/libads/ads_status.c @@ -96,11 +96,9 @@ NTSTATUS ads_ntstatus(ADS_STATUS status) */ const char *ads_errstr(ADS_STATUS status) { - uint32 msg_ctx; static char *ret; SAFE_FREE(ret); - msg_ctx = 0; switch (status.error_type) { case ENUM_ADS_ERROR_SYSTEM: @@ -116,7 +114,10 @@ const char *ads_errstr(ADS_STATUS status) #ifdef HAVE_GSSAPI case ENUM_ADS_ERROR_GSS: { + uint32 msg_ctx; uint32 minor; + + msg_ctx = 0; gss_buffer_desc msg1, msg2; msg1.value = NULL; |