Fix potential socket leak at bootstrap and shutdown

This is a follow-up to a39ee0b, found by Coverity Scan.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-04 11:44:48 +01:00
parent 8ce35771c3
commit 3bb2eb2a8d
+1 -1
View File
@@ -377,7 +377,7 @@ static void api_cb(uev_t *w, void *arg, int events)
case INIT_CMD_SUSPEND:
if (runlevel == 0 || runlevel == 6) {
warnx("Unsupported command in runlevel S and 6.");
return;
goto leave;
}
default:
break;