diff options
author | Robbie Harwood (frozencemetery) <rharwood@club.cc.cmu.edu> | 2013-07-22 16:11:41 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-07-30 12:30:34 -0400 |
commit | ee222531c802531a1ac0a74c933dfdfa48e8ed9e (patch) | |
tree | a6a82e0f7a6163caf7c4b8a9d698048307c0205b /src/lib/krb5 | |
parent | 3ee5792e0324071ccaad69a04e091f3c6abf1bfc (diff) | |
download | krb5-ee222531c802531a1ac0a74c933dfdfa48e8ed9e.tar.gz krb5-ee222531c802531a1ac0a74c933dfdfa48e8ed9e.tar.xz krb5-ee222531c802531a1ac0a74c933dfdfa48e8ed9e.zip |
Remove is_udp field in sendto_kdc.c conn_state
This field is redundant with addr.type.
[ghudson@mit.edu: removed extraneous changes; clarified commit
message]
Diffstat (limited to 'src/lib/krb5')
-rw-r--r-- | src/lib/krb5/os/sendto_kdc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 3c31d9f55d..ecea68f005 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -89,7 +89,6 @@ struct incoming_krb5_message { struct conn_state { SOCKET fd; enum conn_states state; - unsigned int is_udp : 1; int (*service)(krb5_context context, struct conn_state *, struct select_state *, int); struct remote_address addr; @@ -432,8 +431,7 @@ set_conn_state_msg_length (struct conn_state *state, const krb5_data *message) if (!message || message->length == 0) return; - if (!state->is_udp) { - + if (state->addr.type == SOCK_STREAM) { store_32_be(message->length, state->x.out.msg_len_buf); SG_SET(&state->x.out.sgbuf[0], state->x.out.msg_len_buf, 4); SG_SET(&state->x.out.sgbuf[1], message->data, message->length); @@ -473,7 +471,6 @@ add_connection(struct conn_state **conns, struct addrinfo *ai, state->x.out.sg_count = 2; */ - state->is_udp = 0; state->service = service_tcp_fd; set_conn_state_msg_length (state, message); } else { @@ -483,7 +480,6 @@ add_connection(struct conn_state **conns, struct addrinfo *ai, state->x.out.sg_count = 1; */ - state->is_udp = 1; state->service = service_udp_fd; set_conn_state_msg_length (state, message); |