projects
/
util-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
added doxygen annnotations
[util-vserver.git]
/
util-vserver
/
lib
/
syscall_setflags.c
diff --git
a/util-vserver/lib/syscall_setflags.c
b/util-vserver/lib/syscall_setflags.c
index
fab0ae8
..
37d8947
100644
(file)
--- a/
util-vserver/lib/syscall_setflags.c
+++ b/
util-vserver/lib/syscall_setflags.c
@@
-32,6
+32,11
@@
int
vc_set_flags(xid_t xid, struct vc_ctx_flags const *flags)
{
+ if (flags==0) {
+ errno = EFAULT;
+ return -1;
+ }
+
CALL_VC(CALL_VC_V13A(vc_set_flags, xid, flags));
}
#endif