summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/server/src/server-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/protocol/server/src/server-protocol.c')
-rw-r--r--xlators/protocol/server/src/server-protocol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 9bba95544..78ca63523 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -4211,7 +4211,8 @@ server_writev (call_frame_t *frame, xlator_t *bound_xl,
GF_VALIDATE_OR_GOTO(bound_xl->name, state->fd, fail);
- iov.iov_base = iobuf->ptr;
+ if (iobuf)
+ iov.iov_base = iobuf->ptr;
iov.iov_len = state->size;
iobref = iobref_new ();