[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: small fix for kpasswd...



Wynn Wilkes <wynnw@caldera.com> writes:

> The following fixes the problem for me:

Isn't this even better? Not much point in iterating over more servers
(not that it's likely to be any more) if we're done. Thanks.

--- changepw.c	2001/09/27 01:29:12	1.34
+++ changepw.c	2002/06/06 13:30:14
@@ -271,7 +271,7 @@
     if (ret)
 	goto out;
 
-    while (krb5_krbhst_next(context, handle, &hi) == 0) {
+    while (!done && (ret = krb5_krbhst_next(context, handle, &hi)) == 0) {
 	struct addrinfo *ai, *a;
 
 	ret = krb5_krbhst_get_addrinfo(context, hi, &ai);

/Johan