1940. [bug] Fixed a number of error conditions reported by

Coverity.
This commit is contained in:
Mark Andrews
2005-11-30 03:33:49 +00:00
parent 91be6c5ba2
commit 2674e1a455
42 changed files with 356 additions and 207 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: keycreate.c,v 1.11 2004/06/11 00:27:05 marka Exp $ */
/* $Id: keycreate.c,v 1.12 2005/11/30 03:33:48 marka Exp $ */
#include <config.h>
@@ -144,7 +144,9 @@ sendquery(isc_task_t *task, isc_event_t *event) {
isc_event_free(&event);
inet_pton(AF_INET, "10.53.0.1", &inaddr);
result = ISC_R_FAILURE;
if (inet_pton(AF_INET, "10.53.0.1", &inaddr) != 1)
CHECK("inet_pton", result);
isc_sockaddr_fromin(&address, &inaddr, PORT);
dns_fixedname_init(&keyname);