From 3dd3241bfd647877d58a51b28af900d76bc0a427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Thu, 26 Sep 1996 18:46:33 +0200 Subject: [PATCH] forgot to check no of args to set_close_on_exit Rev: src/modules/files/file.c:1.5 --- src/modules/files/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/files/file.c b/src/modules/files/file.c index 55a48a01cf..c3473f92c8 100644 --- a/src/modules/files/file.c +++ b/src/modules/files/file.c @@ -678,6 +678,8 @@ static void file_set_blocking(INT32 args) static void file_set_close_on_exec(INT32 args) { + if(args < 0) + error("Too few arguments to file->set_close_on_exit()\n"); if(FD <0) error("File not open.\n"); -- GitLab