which would otherwise get returned without being set in certain
circumstances.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13235
dc483132-0cff-0310-8789-
dd5450dbe970
+2001-05-08 Danilo Almeida <dalmeida@mit.edu>
+
+ * locate_kdc.c (add_host_to_list): Initialize stack variable err
+ which would otherwise get returned without being set in certain
+ circumstances.
+
2001-05-07 Ken Raeburn <raeburn@mit.edu>
* locate_kdc.c (add_sockaddr_to_list) [TEST]: If getnameinfo is
#else
struct hostent *hp;
#endif
- int err;
+ /* Must set err to 0 for the case we return err without ever
+ setting it -- !HAVE_GETADDRINFO and !hp */
+ int err = 0;
#ifdef TEST
fprintf (stderr, "adding hostname %s, ports %d,%d\n", hostname,