diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-06-05 07:40:17 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:17:38 -0500 |
commit | ba30cbf67bf4ceacd556f6c878d9370b6ddb879f (patch) | |
tree | fa03f7646ba070588e8ef188f52dd292f896020a | |
parent | b4a95b949ee15054cf503029327bde9e75b7d17b (diff) | |
download | samba-ba30cbf67bf4ceacd556f6c878d9370b6ddb879f.tar.gz samba-ba30cbf67bf4ceacd556f6c878d9370b6ddb879f.tar.bz2 samba-ba30cbf67bf4ceacd556f6c878d9370b6ddb879f.zip |
r7297: make the code more readable
metze
(This used to be commit f9b4448ec536ea23699d959bcf44e359d5c4ba23)
-rw-r--r-- | source4/kdc/kdc.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source4/kdc/kdc.c b/source4/kdc/kdc.c index 40250bbc3a..b60fbd2e53 100644 --- a/source4/kdc/kdc.c +++ b/source4/kdc/kdc.c @@ -70,6 +70,7 @@ static void kdc_recv_handler(struct kdc_socket *kdc_socket) int src_port; struct sockaddr_in src_sock_addr; struct ipv4_addr addr; + int ret; status = socket_pending(kdc_socket->sock, &dsize); if (!NT_STATUS_IS_OK(status)) { @@ -107,12 +108,13 @@ static void kdc_recv_handler(struct kdc_socket *kdc_socket) src_sock_addr.sin_family = PF_INET; /* Call krb5 */ - if (krb5_kdc_process_krb5_request(kdc_socket->kdc->smb_krb5_context->krb5_context, - kdc_socket->kdc->config, - blob.data, blob.length, - &reply, - src_addr, - (struct sockaddr *)&src_sock_addr) == -1) { + ret = krb5_kdc_process_krb5_request(kdc_socket->kdc->smb_krb5_context->krb5_context, + kdc_socket->kdc->config, + blob.data, blob.length, + &reply, + src_addr, + (struct sockaddr *)&src_sock_addr); + if (ret == -1) { talloc_free(tmp_ctx); return; } |