svn commit: samba r23251 - in branches/SAMBA_3_0/source: include
libads
jerry at samba.org
jerry at samba.org
Wed May 30 21:55:50 GMT 2007
Author: jerry
Date: 2007-05-30 21:55:49 +0000 (Wed, 30 May 2007)
New Revision: 23251
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23251
Log:
whoops! Fix compile error
Modified:
branches/SAMBA_3_0/source/include/includes.h
branches/SAMBA_3_0/source/libads/authdata.c
Changeset:
Modified: branches/SAMBA_3_0/source/include/includes.h
===================================================================
--- branches/SAMBA_3_0/source/include/includes.h 2007-05-30 21:46:25 UTC (rev 23250)
+++ branches/SAMBA_3_0/source/include/includes.h 2007-05-30 21:55:49 UTC (rev 23251)
@@ -780,6 +780,9 @@
#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"
Modified: branches/SAMBA_3_0/source/libads/authdata.c
===================================================================
--- branches/SAMBA_3_0/source/libads/authdata.c 2007-05-30 21:46:25 UTC (rev 23250)
+++ branches/SAMBA_3_0/source/libads/authdata.c 2007-05-30 21:55:49 UTC (rev 23251)
@@ -451,10 +451,11 @@
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 @@
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);
More information about the samba-cvs
mailing list