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
This commit is contained in:
Johan Danielsson
2002-06-06 13:33:13 +00:00
parent 0b35d3a22e
commit 1dd4a01be4

View File

@@ -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). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -271,7 +271,7 @@ krb5_change_password (krb5_context context,
if (ret) if (ret)
goto out; goto out;
while (krb5_krbhst_next(context, handle, &hi) == 0) { while (!done && (ret = krb5_krbhst_next(context, handle, &hi)) == 0) {
struct addrinfo *ai, *a; struct addrinfo *ai, *a;
ret = krb5_krbhst_get_addrinfo(context, hi, &ai); ret = krb5_krbhst_get_addrinfo(context, hi, &ai);