]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r4023: Code tidyup to fix bug #2098.
authorJeremy Allison <jra@samba.org>
Tue, 30 Nov 2004 22:57:41 +0000 (22:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:28 +0000 (10:53 -0500)
Jeremy.

source/libads/ads_status.c

index 463f647f9c77fe02ca33a271edae30601953b10f..79e07a9b0071a6909cc91cfc2293e4bdb91d71de 100644 (file)
@@ -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;