diff options
author | Ted Lemon <source@isc.org> | 2001-10-11 20:40:56 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 2001-10-11 20:40:56 +0000 |
commit | f7a9c9903b9bc3b9268b29c814d7157db51ca7f1 (patch) | |
tree | 41992e50e7565f3456944dc102d165697b15bece | |
parent | bc4ebba69d11f5f85d0235527d02ef8c90ab41d2 (diff) | |
download | isc-dhcp-f7a9c9903b9bc3b9268b29c814d7157db51ca7f1.tar.gz |
Fix a couple of obscure core dumps.
-rw-r--r-- | omapip/protocol.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c index 55854b1d..c61fa195 100644 --- a/omapip/protocol.c +++ b/omapip/protocol.c @@ -926,14 +926,14 @@ isc_result_t omapi_protocol_destroy (omapi_object_t *h, if (p -> default_auth && !p -> remote_auth_list) dfree (p -> default_auth, file, line); - do { + while (p -> remote_auth_list) { omapi_remote_auth_t *r = p -> remote_auth_list -> next; + p -> remote_auth_list = r; if (r) { omapi_object_dereference (&r -> a, file, line); dfree (r, file, line); } - p -> remote_auth_list = r; - } while (p -> remote_auth_list); + } return ISC_R_SUCCESS; } |