summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@mit.edu>2008-03-24 19:11:14 +0000
committerGravatar Karl Ramm <kcr@mit.edu>2008-03-24 19:11:14 +0000
commit6843142aa38e83a5102574d66c6f20fd7688ed8f (patch)
treeaf8f6d3493e66e65131343e6b0b972bd83080cf1
parentc32b0e784107d1c969721bee104857e7d6ce9338 (diff)
remove packet address check
-rw-r--r--server/dispatch.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/server/dispatch.c b/server/dispatch.c
index bd1f8fd..01c5a2f 100644
--- a/server/dispatch.c
+++ b/server/dispatch.c
@@ -370,34 +370,6 @@ sendit(ZNotice_t *notice,
}
}
}
- if (!realm_which_realm(who)) {
- if (memcmp(&notice->z_sender_addr.s_addr, &who->sin_addr.s_addr,
- sizeof(notice->z_sender_addr.s_addr))) {
- /* someone is playing games... */
- /* inet_ntoa returns pointer to static area */
- /* max size is 255.255.255.255 */
- char buffer[16];
- strcpy(buffer, inet_ntoa(who->sin_addr));
- if (!auth) {
- syslog(LOG_WARNING,
- "sendit unauthentic fake packet: claimed %s, real %s",
- inet_ntoa(notice->z_sender_addr), buffer);
- clt_ack(notice, who, AUTH_FAILED);
- free_string(class);
- return;
- }
- if (ntohl(notice->z_sender_addr.s_addr) != 0) {
- syslog(LOG_WARNING,
- "sendit invalid address: claimed %s, real %s",
- inet_ntoa(notice->z_sender_addr), buffer);
- clt_ack(notice, who, AUTH_FAILED);
- free_string(class);
- return;
- }
- syslog(LOG_WARNING, "sendit addr mismatch: claimed %s, real %s",
- inet_ntoa(notice->z_sender_addr), buffer);
- }
- }
/* Increment the send counter, used to prevent duplicate sends to
* clients. On the off-chance that we wrap around to 0, skip over