r23251: whoops! Fix compile error
authorGerald Carter <jerry@samba.org>
Wed, 30 May 2007 21:55:49 +0000 (21:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:22:59 +0000 (12:22 -0500)
source/include/includes.h
source/libads/authdata.c

index bbce3bdb5c83eb073cb6d5e712d3bd6bbd36b6dd..6c1931844e66d65de05a329789ff4708c80dbc2e 100644 (file)
@@ -780,6 +780,9 @@ enum flush_reason_enum {
 
 #include "nss_info.h"
 
+/* generated rpc server implementation functions */
+#include "librpc/gen_ndr/srv_echo.h"
+
 /***** automatically generated prototypes *****/
 #ifndef NO_PROTO_H
 #include "proto.h"
index 8e951dde805755e4761524c4bd051beaa8e1f719..9dfb9cba09686540735fc389a1b613318307479d 100644 (file)
@@ -451,10 +451,11 @@ static BOOL pac_io_pac_signature_data(const char *desc,
                                      PAC_SIGNATURE_DATA *data, uint32 length,
                                      prs_struct *ps, int depth)
 {
-       uint32 siglen = length - sizeof(uint32);
+       uint32 siglen = 0;
+
        prs_debug(ps, depth, desc, "pac_io_pac_signature_data");
        depth++;
-       
+
        if (data == NULL)
                return False;
 
@@ -463,6 +464,9 @@ static BOOL pac_io_pac_signature_data(const char *desc,
        if (!prs_uint32("type", ps, depth, &data->type))
                return False;
 
+       if ( length > sizeof(uint32) )
+               siglen = length - sizeof(uint32);       
+
        if (UNMARSHALLING(ps) && length) {
                if (siglen) {
                        data->signature.buffer = PRS_ALLOC_MEM(ps, uint8, siglen);