aboutsummaryrefslogtreecommitdiff
path: root/src/common/sandbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/sandbox.c')
-rw-r--r--src/common/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c
index 13d4ce927..39f6932e2 100644
--- a/src/common/sandbox.c
+++ b/src/common/sandbox.c
@@ -892,7 +892,7 @@ sandbox_getaddrinfo(const char *name, struct addrinfo **res)
}
*res = NULL;
*res = (struct addrinfo *)malloc(sizeof(struct addrinfo));
- if (!res) {
+ if (*res == NULL) {
return -2;
}