summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-rw-r--r--libglusterfs/src/iobuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglusterfs/src/iobuf.c b/libglusterfs/src/iobuf.c
index 17cd68fc206..76584fc9cde 100644
--- a/libglusterfs/src/iobuf.c
+++ b/libglusterfs/src/iobuf.c
@@ -692,6 +692,8 @@ iobuf_get_page_aligned (struct iobuf_pool *iobuf_pool, size_t page_size,
}
iobuf = iobuf_get2 (iobuf_pool, req_size + align_size);
+ if (!iobuf)
+ return NULL;
/* If std allocation was used, then free_ptr will be non-NULL. In this
* case, we do not want to modify the original free_ptr.
* On the other hand, if the buf was gotten through the available