mailfront 0.95 and EHLO in smtpfront-reject
Janos Farkas <[email protected]>
| Newsgroups | gmane.comp.sysutils.bgware |
|---|---|
| Message-ID | <[email protected]> |
I encountered another problem, this time in smtpfront-reject... It seems the stub implementation used for it in sasl-stub.c is a bit too dummy for what it's used for. $ SMTPREJECT="WHATEVER" smtpfront-reject 220 unknown mailfront ESMTP ehlo x 250-unknown Segmentation fault I made sasl_auth_caps return false if there is no auth_resp, thus avoiding to dereference NULL. Janos --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
rejehlo.diff
(application/octet-stream, 484 B)
diff -urpN mailfront-0.95-1118644397/sasl-stub.c mailfront-0.95/sasl-stub.c
--- mailfront-0.95-1118644397/sasl-stub.c 2005-06-10 21:08:51.000000000 +0000
+++ mailfront-0.95/sasl-stub.c 2005-06-13 06:26:49.000000000 +0000
@@ -7,10 +7,9 @@ int sasl_auth_init(struct sasl_auth* sa)
(void)sa;
}
-int sasl_auth_caps(str* ignored)
+int sasl_auth_caps(str* resp)
{
- return 1;
- (void)ignored;
+ return resp->s != 0;
}
int sasl_auth1(struct sasl_auth* sa, const str* ignored2)