From 569792739eba7213caeeaac288b05065cb9929e3 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 22 Oct 2002 18:56:14 +0000 Subject: [PATCH] * 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 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/sendto_kdc.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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) { -- 2.26.2