diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-07 15:07:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:54 -0500 |
commit | a66a04e9f11f6c4462f2b56b447bae4eca7b177c (patch) | |
tree | 3e13993827ca64a6836ef241607464effa195a4d /source/smbd/sesssetup.c | |
parent | a99ab3a2ed44522054175f03b60e63fa05a0378a (diff) | |
download | samba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.tar.gz samba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.tar.xz samba-a66a04e9f11f6c4462f2b56b447bae4eca7b177c.zip |
r22747: Fix some C++ warnings
Diffstat (limited to 'source/smbd/sesssetup.c')
-rw-r--r-- | source/smbd/sesssetup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index 188b7bfb818..7dbf20a189e 100644 --- a/source/smbd/sesssetup.c +++ b/source/smbd/sesssetup.c @@ -990,8 +990,7 @@ static NTSTATUS check_spnego_blob_complete(uint16 smbpid, uint16 vuid, DATA_BLOB } /* We must store this blob until complete. */ - pad = SMB_MALLOC(sizeof(struct pending_auth_data)); - if (!pad) { + if (!(pad = SMB_MALLOC_P(struct pending_auth_data))) { return NT_STATUS_NO_MEMORY; } pad->needed_len = needed_len - pblob->length; |