summaryrefslogtreecommitdiffstats
path: root/util/iobuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/iobuf.c')
-rw-r--r--util/iobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iobuf.c b/util/iobuf.c
index 515a5f8a3..e4c412444 100644
--- a/util/iobuf.c
+++ b/util/iobuf.c
@@ -431,7 +431,7 @@ iobuf_close( IOBUF a )
size_t dummy_len;
int rc=0;
- if( a->directfp ) {
+ if( a && a->directfp ) {
fclose( a->directfp );
if( DBG_IOBUF )
log_debug("iobuf-close -> %p\n", a->directfp );