From 1dd4a01be4554c245cddc886d83a8235998d69db Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Thu, 6 Jun 2002 13:33:13 +0000 Subject: [PATCH] make sure we return an error if there are no changepw hosts found git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11032 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/changepw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/changepw.c b/lib/krb5/changepw.c index 915b6c85d..6575df570 100644 --- a/lib/krb5/changepw.c +++ b/lib/krb5/changepw.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997 - 2001 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2002 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -271,7 +271,7 @@ krb5_change_password (krb5_context context, 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);