From ba30cbf67bf4ceacd556f6c878d9370b6ddb879f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sun, 5 Jun 2005 07:40:17 +0000 Subject: r7297: make the code more readable metze (This used to be commit f9b4448ec536ea23699d959bcf44e359d5c4ba23) --- source4/kdc/kdc.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source4') 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; } -- cgit