diff options
author | John Kohl <jtkohl@mit.edu> | 1987-07-17 06:16:31 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-07-17 06:16:31 +0000 |
commit | 0d54e3a01317f99547a2a94deb5c5736f0557e59 (patch) | |
tree | 3d6097c17ddb0fb4cfe5f8d1441f770488689ba0 /server/dispatch.c | |
parent | a23193ab494fe022316aeeb4a093278e93a9825f (diff) |
transmit restrictions include class_inst == sender
Diffstat (limited to 'server/dispatch.c')
-rw-r--r-- | server/dispatch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/dispatch.c b/server/dispatch.c index 7a1f9ff..f380555 100644 --- a/server/dispatch.c +++ b/server/dispatch.c @@ -134,7 +134,8 @@ struct sockaddr_in *who; register ZClientList_t *clientlist, *ptr; if ((acl = class_get_acl(notice->z_class)) && - (!auth || !access_check(notice, acl, TRANSMIT))) { + (!auth || !access_check(notice, acl, TRANSMIT) || + strcmp(notice->z_class_inst, notice->z_sender))) { syslog(LOG_WARNING, "sendit unauthorized %s", notice->z_class); clt_ack(notice, who, AUTH_FAILED); return; |