diff options
author | Jeff Darcy <jdarcy@redhat.com> | 2013-02-27 17:41:11 +0100 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2013-03-05 21:04:09 -0800 |
commit | 099a9c7f8b205031508049e3ba7b308870116ce0 (patch) | |
tree | 85e1a54b99334bd0f73aac74b8bf845a63d96bc6 /xlators | |
parent | fe042ba81ee4b14e0450226bdc2ac2bd00d1e698 (diff) |
Do not call xdr_string() with a NULL error message
It is illegal to call xdr_string() with a NULL string. Linux
just retruns false, NetBSD gets a SIGSEGV when xdr_string()
calls strlen(NULL)
BUG: 916439
Change-Id: Ia958470ada6e8e55a86d439922ec942d038f5f13
Original-author: Emmanuel Dreyfus <manu@netbsd.org>
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Signed-off-by: Jeff Darcy <jdarcy@redhat.com>
Reviewed-on: http://review.gluster.org/4629
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-handler.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c index b99f53929d0..d69f8352010 100644 --- a/xlators/mgmt/glusterd/src/glusterd-handler.c +++ b/xlators/mgmt/glusterd/src/glusterd-handler.c @@ -2042,6 +2042,7 @@ respond: uuid_copy (rsp.uuid, MY_UUID); rsp.hostname = probe_req.hostname; + rsp.op_errstr = ""; glusterd_submit_reply (req, &rsp, NULL, 0, NULL, (xdrproc_t)xdr_gd1_mgmt_probe_rsp); |