summary refs log tree commit diff
path: root/networks.c
diff options
context:
space:
mode:
Diffstat (limited to 'networks.c')
-rw-r--r--networks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networks.c b/networks.c
index ff877d7..289fa31 100644
--- a/networks.c
+++ b/networks.c
@@ -97,8 +97,8 @@ enum kcgi_err pageNetworks(struct kreq *req) {
 			|| khtml_puts(&html, network)
 			|| khtml_closeelem(&html, 2);
 		free(href);
-		if (error) break;
+		if (error) return error;
 	}
 	if (result != SQLITE_DONE) errx(EX_SOFTWARE, "%s", sqlite3_errmsg(db));
-	return error || htmlFooter(&html) || khtml_close(&html);
+	return htmlFooter(&html) || khtml_close(&html);
 }