small patch to samba3.0alpha23

Luke Howard lukeh at PADL.COM
Wed Apr 30 07:51:25 GMT 2003


Don't crash if parsing authorization data fails...

Index: smbd/sesssetup.c
===================================================================
RCS file: /home/project/cvs/samba/source/smbd/sesssetup.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 sesssetup.c
--- smbd/sesssetup.c    2003/04/15 13:58:16     1.1.1.1
+++ smbd/sesssetup.c    2003/04/30 07:49:53
@@ -144,7 +144,7 @@
        char *user;
        int sess_vuid;
        NTSTATUS ret;
-       DATA_BLOB auth_data;
+       DATA_BLOB auth_data = data_blob(NULL, 0);
        DATA_BLOB ap_rep, ap_rep_wrapped, response;
        auth_serversupplied_info *server_info = NULL;
        ADS_STRUCT *ads;

-- Luke

--
Luke Howard | PADL Software Pty Ltd | www.padl.com


More information about the samba-technical mailing list