diff options
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/protocol/server/src/server-protocol.c | 3 |
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 (); |