summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-30 21:55:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:22:59 -0500
commit3272b1dd602196b2105afda1f9979a8f9596d71e (patch)
tree5c446acd1c1cbab062024527a1c8747c076f8b6a
parent05c68d98c10c9aa62d75bdcafee7f5abb079728d (diff)
downloadsamba-3272b1dd602196b2105afda1f9979a8f9596d71e.tar.gz
samba-3272b1dd602196b2105afda1f9979a8f9596d71e.tar.bz2
samba-3272b1dd602196b2105afda1f9979a8f9596d71e.zip
r23251: whoops! Fix compile error
(This used to be commit 22a3ea40ac69fa3722abf28db845ab284a65ad97)
-rw-r--r--source3/include/includes.h3
-rw-r--r--source3/libads/authdata.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index bbce3bdb5c..6c1931844e 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -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"
diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c
index 8e951dde80..9dfb9cba09 100644
--- a/source3/libads/authdata.c
+++ b/source3/libads/authdata.c
@@ -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);