Removed version number from file header.
[samba.git] / source / libsmb / clispnego.c
index bc3873bf1867e6dcf34c1a7b13c29d1435206b74..a962953b901124323b93e79ee36bf7cdd351a135 100644 (file)
@@ -1,6 +1,5 @@
 /* 
-   Unix SMB/Netbios implementation.
-   Version 3.0
+   Unix SMB/CIFS implementation.
    simple kerberos5/SPNEGO routines
    Copyright (C) Andrew Tridgell 2001
    
@@ -486,9 +485,7 @@ BOOL msrpc_gen(DATA_BLOB *blob,
        va_end(ap);
 
        /* allocate the space, then scan the format again to fill in the values */
-       blob->data = malloc(head_size + data_size);
-       blob->length = head_size + data_size;
-       if (!blob->data) return False;
+       *blob = data_blob(NULL, head_size + data_size);
 
        head_ofs = 0;
        data_ofs = head_size;