diff options
Diffstat (limited to 'doc/examples/tlsproxy/buffer.c')
-rw-r--r-- | doc/examples/tlsproxy/buffer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/examples/tlsproxy/buffer.c b/doc/examples/tlsproxy/buffer.c index cd1ff37eea..05c82121fe 100644 --- a/doc/examples/tlsproxy/buffer.c +++ b/doc/examples/tlsproxy/buffer.c @@ -80,6 +80,8 @@ buffer_t * bufNew (ssize_t size, ssize_t hwm) { buffer_t *b = calloc (1, sizeof (buffer_t)); + if (!b) return NULL; + b->buf = calloc (1, size); b->size = size; b->hwm = hwm; |