summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index dc16af5e39..7ba3a1b896 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -1150,7 +1150,7 @@ static int socket_open_fds(Socket *s) {
/* Get it from the network label */
r = mac_selinux_get_our_label(&label);
- if (r < 0 && r != EOPNOTSUPP)
+ if (r < 0 && r != -EOPNOTSUPP)
goto rollback;
} else {
@@ -1163,7 +1163,7 @@ static int socket_open_fds(Socket *s) {
if (UNIT_ISSET(s->service) &&
SERVICE(UNIT_DEREF(s->service))->exec_command[SERVICE_EXEC_START]) {
r = mac_selinux_get_create_label_from_exe(SERVICE(UNIT_DEREF(s->service))->exec_command[SERVICE_EXEC_START]->path, &label);
- if (r < 0 && r != -EPERM && r != EOPNOTSUPP)
+ if (r < 0 && r != -EPERM && r != -EOPNOTSUPP)
goto rollback;
}
}