in function rpc_transport_inet_options_build : host = gf_strdup ((char*)hostname); if (!hostname) { ret = -1; goto out; } hostname should be host
REVIEW: http://review.gluster.org/13934 (rpc: check the right variable after gf_strdup) posted (#1) for review on master by Zhou Zhengping (johnzzpcrystal)
REVIEW: http://review.gluster.org/13934 (rpc: check the right variable after gf_strdup) posted (#2) for review on master by Zhou Zhengping (johnzzpcrystal)
REVIEW: http://review.gluster.org/13934 (rpc: check the right variable after gf_strdup) posted (#3) for review on master by Zhou Zhengping (johnzzpcrystal)
COMMIT: http://review.gluster.org/13934 committed in master by Jeff Darcy (jdarcy) ------ commit 1c9c776352c60deeda51be66fda6d44bf06d3796 Author: Zhou Zhengping <johnzzpcrystal> Date: Sun Apr 10 23:56:17 2016 +0800 rpc: check the right variable after gf_strdup Change-Id: If4628bd37f2c85a070f6c3b3e0583d939100d7ec BUG: 1325683 Signed-off-by: Zhou Zhengping <johnzzpcrystal> Reviewed-on: http://review.gluster.org/13934 Smoke: Gluster Build System <jenkins.com> Tested-by: Jeff Darcy <jdarcy> Reviewed-by: Anoop C S <anoopcs> NetBSD-regression: NetBSD Build System <jenkins.org> Reviewed-by: Vijay Bellur <vbellur> CentOS-regression: Gluster Build System <jenkins.com>
Hi Zhou Zhengping, Can you please back port this change to release-3.7 branch? You can use the following for guidelines: http://gluster.readthedocs.io/en/latest/Developer-guide/Backport-Guidelines/ To ease the process I have cloned this BZ to 3.7 version. Use BZ #1332404 for back porting the patch.
I have back-ported the fix to release-3.7 branch for now.