summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/lib/src/authenticate.c
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-06-21 04:24:40 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-06-21 20:21:05 -0700
commitb9b8734a9496ccf5f8ed5527dc7714930a59948b (patch)
treeffcf9187c315b30e23cfa7f68f1d360e246d94c2 /xlators/protocol/lib/src/authenticate.c
parent2a5fada7546032e1fc1b106ddd40e42cc45349e1 (diff)
renamed xlator/protocol to xlator/protocol/legacy
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 875 (Implement a new protocol to provide proper backward/forward compatibility) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=875
Diffstat (limited to 'xlators/protocol/lib/src/authenticate.c')
-rw-r--r--xlators/protocol/lib/src/authenticate.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/protocol/lib/src/authenticate.c b/xlators/protocol/lib/src/authenticate.c
index eb0e2464cf6..ff2b58162b7 100644
--- a/xlators/protocol/lib/src/authenticate.c
+++ b/xlators/protocol/lib/src/authenticate.c
@@ -223,12 +223,11 @@ gf_authenticate (dict_t *input_params,
dict_foreach (results, reduce, &result);
if (AUTH_DONT_CARE == result) {
- data_t *peerinfo_data = dict_get (input_params, "peer-info");
+ data_t *peerinfo_data = dict_get (input_params, "peer-info-name");
char *name = NULL;
if (peerinfo_data) {
- peer_info_t *peerinfo = data_to_ptr (peerinfo_data);
- name = peerinfo->identifier;
+ name = peerinfo_data->data;
}
gf_log ("auth", GF_LOG_ERROR,