diff options
Diffstat (limited to 'xlators/mount')
-rw-r--r-- | xlators/mount/fuse/src/fuse-bridge.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/mount/fuse/src/fuse-bridge.c b/xlators/mount/fuse/src/fuse-bridge.c index 6ce2e12bac3..35fb9ec8374 100644 --- a/xlators/mount/fuse/src/fuse-bridge.c +++ b/xlators/mount/fuse/src/fuse-bridge.c @@ -43,6 +43,10 @@ send_fuse_iov (xlator_t *this, fuse_in_header_t *finh, struct iovec *iov_out, struct fuse_out_header *fouh = NULL; int res, i; + if (!this || !finh || !iov_out) { + gf_log ("send_fuse_iov", GF_LOG_ERROR,"Invalid arguments"); + return -1; + } priv = this->private; fouh = iov_out[0].iov_base; |