summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2002-01-09 07:52:51 +0000
committerMartin Pool <mbp@samba.org>2002-01-09 07:52:51 +0000
commitf5bc0e92a66b418b2bd8f3669a9642b4d46bc8d1 (patch)
tree69f22209798728e027da50295b642ae53ab57e2c /source3/smbd/sesssetup.c
parenta8389eaeb575bcba33bd7d4fd378b342ba4e552a (diff)
downloadsamba-f5bc0e92a66b418b2bd8f3669a9642b4d46bc8d1.tar.gz
samba-f5bc0e92a66b418b2bd8f3669a9642b4d46bc8d1.tar.bz2
samba-f5bc0e92a66b418b2bd8f3669a9642b4d46bc8d1.zip
Better explanation message for dmalloc.
Also more insertion of parenthesis to handle struct members called 'free'. You can now get useful dmalloc output, as long as it is compatible with your C library. On RH7.1 it looks like you have to rebuild dmalloc to allow free(0) by default, because something in libcrypt does that. (sigh) (This used to be commit 391cbb690196537c8b6292b42c2e27408cc7e249)
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r--source3/smbd/sesssetup.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index a159111319..f809f9ca0c 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -87,12 +87,12 @@ static NTSTATUS check_guest_password(auth_serversupplied_info **server_info)
}
if (!make_user_info_guest(&user_info)) {
- auth_context->free(&auth_context);
+ (auth_context->free)(&auth_context);
return NT_STATUS_NO_MEMORY;
}
nt_status = auth_context->check_ntlm_password(auth_context, user_info, server_info);
- auth_context->free(&auth_context);
+ (auth_context->free)(&auth_context);
free_user_info(&user_info);
return nt_status;
}
@@ -289,7 +289,7 @@ static int reply_spnego_negotiate(connection_struct *conn,
DEBUG(3,("Got neg_flags=%08x\n", neg_flags));
if (ntlmssp_auth_context) {
- ntlmssp_auth_context->free(&ntlmssp_auth_context);
+ (ntlmssp_auth_context->free)(&ntlmssp_auth_context);
}
if (!NT_STATUS_IS_OK(nt_status = make_auth_context_subsystem(&ntlmssp_auth_context))) {
@@ -400,7 +400,7 @@ static int reply_spnego_auth(connection_struct *conn, char *inbuf, char *outbuf,
SAFE_FREE(workgroup);
SAFE_FREE(machine);
- ntlmssp_auth_context->free(&ntlmssp_auth_context);
+ (ntlmssp_auth_context->free)(&ntlmssp_auth_context);
free_user_info(&user_info);
@@ -741,7 +741,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
user_info,
&server_info);
- plaintext_auth_context->free(&plaintext_auth_context);
+ (plaintext_auth_context->free)(&plaintext_auth_context);
}
}
}