From 08e75df4c2c22c60e6a7db37f5adc3cf7234463e Mon Sep 17 00:00:00 2001 From: Garry Zacheiss Date: Tue, 2 Jul 2002 23:02:44 +0000 Subject: Don't allow foreign zephyrd to request a triplet with a non-wildcard recipient. --- server/subscr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'server/subscr.c') diff --git a/server/subscr.c b/server/subscr.c index 30b6d64..b5da880 100644 --- a/server/subscr.c +++ b/server/subscr.c @@ -1470,10 +1470,17 @@ subscr_check_foreign_subs(notice, who, server, realm, newsubs) found = 0; for (subs = newsubs; subs; subs = next) { + Realm *rlm; next=subs->next; + if (subs->dest.recip->string[0] != '\0') { + rlm = realm_which_realm(who); + syslog(LOG_WARNING, "subscr bad recip %s by %s (%s)", + subs->dest.recip->string, + sender->string, rlm->name); + continue; + } acl = class_get_acl(subs->dest.classname); if (acl) { - Realm *rlm; rlm = realm_which_realm(who); if (rlm && server == me_server) { if (!realm_sender_in_realm(rlm->name, sender->string)) { -- cgit v1.2.3