From 63f00588bbfd477c2f4579fd4392c14679dd7ac0 Mon Sep 17 00:00:00 2001 From: Pranith K Date: Thu, 24 Feb 2011 06:16:36 +0000 Subject: mgmt/glusterd: prevent spurious cmd unlocks Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2460 ([glusterfs-3.2.0-gsync1]: gluserd crashed trying to access freed request) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2460 --- cli/src/cli-cmd-parser.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index a90e6a75e45..8cfdc808a14 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -388,19 +388,6 @@ cli_cmd_volume_set_parse (const char **words, int wordcount, dict_t **options) key = (char *) words[i]; value = (char *) words[i+1]; - if ( key && !value ) { - if ( !strcmp (key, "history")) { - ret = dict_set_str (dict, key, "history"); - if (ret) - goto out; - ret = dict_set_int32 (dict, "count", 1); - if (ret) - goto out; - *options = dict; - goto out; - } - } - if ( !key || !value) { ret = -1; goto out; -- cgit