diff options
author | Bjørn Mork <bjorn@mork.no> | 2012-04-16 13:25:36 +0200 |
---|---|---|
committer | Bjørn Mork <bjorn@mork.no> | 2012-04-16 13:25:36 +0200 |
commit | aaf12f3264d8fa96c65a18efad8161368200f8e3 (patch) | |
tree | 05a9c405af9f5c0e10b6ed6ebbb86ff5fbb8013f /omapip/protocol.c | |
parent | 402b4a6e3f8c2f42fe326b0b90c5311d2edbb6f3 (diff) | |
parent | aa161a719e968da4be1a97b2b7ccf312dafad3dc (diff) |
Diffstat (limited to 'omapip/protocol.c')
-rw-r--r-- | omapip/protocol.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/omapip/protocol.c b/omapip/protocol.c index 1a6d7e8..9906489 100644 --- a/omapip/protocol.c +++ b/omapip/protocol.c @@ -3,7 +3,8 @@ Functions supporting the object management protocol... */ /* - * Copyright (c) 2004-2007,2009 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2009,2012 by Internet Systems Consortium, Inc. ("ISC") + * Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1999-2003 by Internet Software Consortium * * Permission to use, copy, modify, and distribute this software for any @@ -926,12 +927,10 @@ isc_result_t omapi_protocol_destroy (omapi_object_t *h, dfree (p -> default_auth, file, line); 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); - } + omapi_remote_auth_t *r = p -> remote_auth_list; + p -> remote_auth_list = p -> remote_auth_list -> next; + omapi_object_dereference (&r -> a, file, line); + dfree (r, file, line); } return ISC_R_SUCCESS; } |