projects
/
crypto.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merged silc_1_0_branch to trunk.
[crypto.git]
/
lib
/
silcutil
/
silcbuffer.h
diff --git
a/lib/silcutil/silcbuffer.h
b/lib/silcutil/silcbuffer.h
index 149adc1dffd6a2c587278c10a34654827dd62bd7..4dc1472ae6822fc5bff68575c5db519c7e0c3604 100644
(file)
--- a/
lib/silcutil/silcbuffer.h
+++ b/
lib/silcutil/silcbuffer.h
@@
-591,6
+591,8
@@
SilcBuffer silc_buffer_alloc_size(SilcUInt32 len)
static inline
void silc_buffer_clear(SilcBuffer sb)
{
+ if (!sb)
+ return;
memset(sb->head, 0, sb->truelen);
sb->data = sb->head;
sb->tail = sb->head;