authd/providers/ident: perform check for valid auth_client data

This commit is contained in:
Elizabeth Myers 2016-03-26 20:33:35 -05:00
parent 247b304f1f
commit f681e277eb

View file

@ -320,6 +320,9 @@ static bool ident_start(struct auth_client *auth)
struct rb_sockaddr_storage l_addr, c_addr; struct rb_sockaddr_storage l_addr, c_addr;
int family = GET_SS_FAMILY(&auth->c_addr); int family = GET_SS_FAMILY(&auth->c_addr);
if(auth->data[PROVIDER_IDENT] != NULL)
return true;
notice_client(auth->cid, messages[REPORT_LOOKUP]); notice_client(auth->cid, messages[REPORT_LOOKUP]);
auth->data[PROVIDER_IDENT] = query; auth->data[PROVIDER_IDENT] = query;