summaryrefslogtreecommitdiffstats
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-12-30 06:20:23 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-12-30 06:20:23 +0000
commit436595a3865e1e1d70847f238281a542952ce752 (patch)
tree25edc06288c61100af3bb58773c2fc7b8330785c /source3/libads
parent34037e2479981073c8289fe51868b29096cc5808 (diff)
downloadsamba-436595a3865e1e1d70847f238281a542952ce752.tar.gz
samba-436595a3865e1e1d70847f238281a542952ce752.tar.xz
samba-436595a3865e1e1d70847f238281a542952ce752.zip
Fix the compile on systems without a full kerberos kit.
Andrew Bartlett (This used to be commit 33ae29028bffccf5a9cdd8d44b08c27b9d8fd982)
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ads_status.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/libads/ads_status.c b/source3/libads/ads_status.c
index 6dac335cc4c..51be9c806a0 100644
--- a/source3/libads/ads_status.c
+++ b/source3/libads/ads_status.c
@@ -52,7 +52,6 @@ NTSTATUS ads_ntstatus(ADS_STATUS rc)
*/
const char *ads_errstr(ADS_STATUS status)
{
- gss_buffer_desc msg1, msg2;
uint32 minor;
int msg_ctx;
static char *ret;
@@ -71,6 +70,8 @@ const char *ads_errstr(ADS_STATUS status)
case ADS_ERROR_KRB5:
return error_message(status.rc);
case ADS_ERROR_GSS:
+ {
+ gss_buffer_desc msg1, msg2;
msg1.value = NULL;
msg2.value = NULL;
gss_display_status(&minor, status.rc, GSS_C_GSS_CODE,
@@ -81,6 +82,7 @@ const char *ads_errstr(ADS_STATUS status)
gss_release_buffer(&minor, &msg1);
gss_release_buffer(&minor, &msg2);
return ret;
+ }
#endif
default:
return "Unknown ADS error type!? (not compiled in?)";