1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-03 04:23:50 +03:00

r23251: whoops! Fix compile error

This commit is contained in:
Gerald Carter
2007-05-30 21:55:49 +00:00
committed by Gerald (Jerry) Carter
parent 7aa1f89eb3
commit 22a3ea40ac
2 changed files with 9 additions and 2 deletions

View 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"

View 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);