aboutgitcodelistschat:MatrixIRC
path: root/common/gluten.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/gluten.h')
-rw-r--r--common/gluten.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/gluten.h b/common/gluten.h
index 1f06221..e80916a 100644
--- a/common/gluten.h
+++ b/common/gluten.h
@@ -357,8 +357,10 @@ static inline const void *gluten_ptr(const struct seccomp_data *s,
return NULL;
}
- if (x.type == OFFSET_SECCOMP_DATA && s == NULL)
+ if (x.type == OFFSET_SECCOMP_DATA && s == NULL) {
+ err(" seccomp data is empty");
return NULL;
+ }
switch (x.type) {
case OFFSET_DATA: