summaryrefslogtreecommitdiff
path: root/lib/libc/asr
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2017-02-21 22:32:29 +0000
committerEric Faurot <eric@cvs.openbsd.org>2017-02-21 22:32:29 +0000
commitf8184e822942ffa74efa32f2803b41cd48491cae (patch)
tree85c04402a8d47a7b2068e9d87e8351612f629fd7 /lib/libc/asr
parent2b2dbf8493ccd97f936b4ac90bf8fa711e3de80e (diff)
missing breaks
ok jca@ krw@ gilles@
Diffstat (limited to 'lib/libc/asr')
-rw-r--r--lib/libc/asr/getaddrinfo_async.c3
-rw-r--r--lib/libc/asr/getnetnamadr_async.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c
index 71bf4488d97..1e78bd09bc6 100644
--- a/lib/libc/asr/getaddrinfo_async.c
+++ b/lib/libc/asr/getaddrinfo_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getaddrinfo_async.c,v 1.51 2017/02/21 07:28:28 eric Exp $ */
+/* $OpenBSD: getaddrinfo_async.c,v 1.52 2017/02/21 22:32:28 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -334,6 +334,7 @@ getaddrinfo_async_run(struct asr_query *as, struct asr_result *ar)
if (as->as.ai.fqdn == NULL) {
ar->ar_gai_errno = EAI_MEMORY;
async_set_state(as, ASR_STATE_HALT);
+ break;
}
async_set_state(as, ASR_STATE_SAME_DB);
diff --git a/lib/libc/asr/getnetnamadr_async.c b/lib/libc/asr/getnetnamadr_async.c
index 454fff20622..a1ff84a455e 100644
--- a/lib/libc/asr/getnetnamadr_async.c
+++ b/lib/libc/asr/getnetnamadr_async.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getnetnamadr_async.c,v 1.23 2015/09/20 14:19:21 eric Exp $ */
+/* $OpenBSD: getnetnamadr_async.c,v 1.24 2017/02/21 22:32:28 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -173,6 +173,7 @@ getnetnamadr_async_run(struct asr_query *as, struct asr_result *ar)
ar->ar_errno = errno;
ar->ar_h_errno = NETDB_INTERNAL;
async_set_state(as, ASR_STATE_HALT);
+ break;
}
async_set_state(as, ASR_STATE_SUBQUERY);
break;