From: Ezra Peisach Date: Tue, 22 Oct 2002 18:56:14 +0000 (+0000) Subject: * sendto_kdc.c (service_tcp_fd): If DEBUG defined, ensure that X-Git-Tag: krb5-1.3-alpha1~317 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=569792739eba7213caeeaac288b05065cb9929e3;p=krb5.git * sendto_kdc.c (service_tcp_fd): If DEBUG defined, ensure that initialization of variable not bypassed by goto. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14934 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 6c994b1e3..20edb2a40 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2002-10-22 Ezra Peisach + + * sendto_kdc.c (service_tcp_fd): If DEBUG defined, ensure that + initialization of variable not bypassed by goto. + 2002-10-15 Tom Yu * hst_realm.c (krb5_try_realm_txt_rr): Apply patch from Nalin diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index 99412546a..687f4e079 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -708,10 +708,11 @@ service_tcp_fd (struct conn_state *conn, struct select_state *selstate, if (ssflags & SSF_EXCEPTION) { #ifdef DEBUG int sockerr; - socklen_t sockerrlen = sizeof(sockerr); + socklen_t sockerrlen; #endif handle_exception: #ifdef DEBUG + sockerrlen = sizeof(sockerr); e = getsockopt(conn->fd, SOL_SOCKET, SO_ERROR, &sockerr, &sockerrlen); if (e != 0) {