summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-10-08 23:57:46 +0000
committerLuke Leighton <lkcl@samba.org>1998-10-08 23:57:46 +0000
commit62fdeef1b79c5c4c9bf0e860881651711bb80b9a (patch)
tree4787fb3ece089022a1b650b702866b8c29f0511f /source/lib
parent8d9c5f35225441384f69744bf8cda8115828ae2f (diff)
downloadsamba-62fdeef1b79c5c4c9bf0e860881651711bb80b9a.tar.gz
samba-62fdeef1b79c5c4c9bf0e860881651711bb80b9a.tar.xz
samba-62fdeef1b79c5c4c9bf0e860881651711bb80b9a.zip
dce/rpc
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/membuffer.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source/lib/membuffer.c b/source/lib/membuffer.c
index 85f63e8c065..18e9fa94532 100644
--- a/source/lib/membuffer.c
+++ b/source/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;
}