summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/lib/src/authenticate.c
diff options
context:
space:
mode:
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,