diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2019-01-10 16:17:39 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-01-13 12:50:46 +0000 |
commit | 741f652769bc074fe85da1485e0e16df6e6766f1 (patch) | |
tree | e247a5af88d367a598668c15a4051ac719cc355e /geo-replication/syncdaemon/argsupgrade.py | |
parent | ed2d1ad8266b09e4a71ffd193be3cf85467f4f06 (diff) |
glusterd: fix crash
Problem: running "gluster get-state glusterd odir /get-state"
resulted in glusterd crash.
Cause: In the above command output directory has been specified
without "/" at the end. If "/" is not given at the end, "/" will
be added to path using "strcat", so the added character "/" is
not having memory allocated. When tried to free, glusterd will
crash as"/" has no memory allocated.
Solution: Instead of concatenating "/" to output directory, add
it to output filename.
Change-Id: I5dc00a71e46fbef4d07fe99ae23b36fb60dec1c2
fixes: bz#1665038
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'geo-replication/syncdaemon/argsupgrade.py')
0 files changed, 0 insertions, 0 deletions