aboutsummaryrefslogtreecommitdiff
path: root/src/lib9/postnote.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib9/postnote.c')
-rw-r--r--src/lib9/postnote.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib9/postnote.c b/src/lib9/postnote.c
index 68e6d2f6..d750c69d 100644
--- a/src/lib9/postnote.c
+++ b/src/lib9/postnote.c
@@ -18,6 +18,11 @@ postnote(int who, int pid, char *msg)
return -1;
}
+ if(pid <= 0){
+ werrstr("bad pid in postnote");
+ return -1;
+ }
+
switch(who){
default:
werrstr("bad who in postnote");