X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=6abcbd7a21de4b8d9de3950fa37d813bb333fee5;hp=948838d01ecdd09788373f4a0217000f286766d8;hb=2bf4929fe90ac9500d8345f5ccf1e1e306ab27d6;hpb=22afe38a1f113ef7f2a46d1fde0141cf10b27eb4 diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 948838d..6abcbd7 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -2801,16 +2801,6 @@ void Yaz_Proxy::handle_incoming_HTTP(Z_HTTP_Request *hreq) } auth->u.idPass->userId = odr_strdup(m_s2z_odr_init, authorization_str); } - else - { - // Use _client_ IP as shown in the log entries...! - auth = (Z_IdAuthentication *) odr_malloc(m_s2z_odr_init, sizeof(Z_IdAuthentication)); - auth->which = Z_IdAuthentication_idPass; - auth->u.idPass = (Z_IdPass *) odr_malloc(m_s2z_odr_init, sizeof(Z_IdPass)); - auth->u.idPass->groupId = NULL; - auth->u.idPass->password = NULL; - auth->u.idPass->userId = odr_strdup(m_s2z_odr_init, m_peername); - } } if (srw_pdu->which == Z_SRW_searchRetrieve_request)