lib9: reject postnote with special pids
This commit is contained in:
parent
fdcf3d70c2
commit
0cc1faf015
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@ postnote(int who, int pid, char *msg)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(pid <= 0){
|
||||||
|
werrstr("bad pid in postnote");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
switch(who){
|
switch(who){
|
||||||
default:
|
default:
|
||||||
werrstr("bad who in postnote");
|
werrstr("bad who in postnote");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue