Fix commented out code in kpasswd server to use correct function
authorAndrew Bartlett <abartlet@samba.org>
Mon, 22 Sep 2014 06:38:10 +0000 (23:38 -0700)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 26 Sep 2014 23:35:36 +0000 (01:35 +0200)
The fix in ac2d31e24cfa24f6674b645b3661a1a2ce9ab060 picked the wrong function name.  This is meant
to be the remote address, not the local one, if we ever have to re-instate this code.

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/kpasswdd.c

index e8d46ad963d1c6ccccdfd55a3282e6c390cdecaa..7b322296320afa519d829825a20a846b8147a689 100644 (file)
@@ -553,7 +553,7 @@ enum kdc_process_ret kpasswdd_process(struct kdc_server *kdc,
         * older MIT clients need this, we might have to insert more
         * complex code */
 
-       nt_status = gensec_set_local_address(gensec_security, peer_addr);
+       nt_status = gensec_set_remote_address(gensec_security, peer_addr);
        if (!NT_STATUS_IS_OK(nt_status)) {
                talloc_free(tmp_ctx);
                return KDC_PROCESS_FAILED;