From 6909350ed9b87875ee40191b2e636c6049749195 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 8 Oct 1998 23:57:46 +0000 Subject: dce/rpc (This used to be commit 62fdeef1b79c5c4c9bf0e860881651711bb80b9a) --- source3/lib/membuffer.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source3/lib/membuffer.c') diff --git a/source3/lib/membuffer.c b/source3/lib/membuffer.c index 85f63e8c06..18e9fa9453 100644 --- a/source3/lib/membuffer.c +++ b/source3/lib/membuffer.c @@ -313,16 +313,19 @@ static BOOL mem_find(struct mem_buf **buf, uint32 offset) while (f != NULL && offset >= f->offset.end) { - f = f->next; - DEBUG(200,("mem_find: next[%d..%d]\n", - f->offset.start, f->offset.end)); + f->offset.start, f->offset.end)); + + f = f->next; } (*buf) = f; - DEBUG(200,("mem_find: found data[%d..%d]\n", - (*buf)->offset.start,(*buf)->offset.end)); + if (f != NULL) + { + DEBUG(200,("mem_find: found data[%d..%d]\n", + (*buf)->offset.start,(*buf)->offset.end)); + } return f != NULL; } -- cgit