INN commit: trunk/nnrpd (sasl.c)
INN Commit
rra at isc.org
Tue Jan 26 21:13:47 UTC 2010
Date: Tuesday, January 26, 2010 @ 13:13:47
Author: iulius
Revision: 8936
Better explanation of why SASL_CONTINUE must be changed
to SASL_BADPROT. Approved by Ken.
Modified:
trunk/nnrpd/sasl.c
--------+
sasl.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
Modified: sasl.c
===================================================================
--- sasl.c 2010-01-26 20:26:56 UTC (rev 8935)
+++ sasl.c 2010-01-26 21:13:47 UTC (rev 8936)
@@ -172,8 +172,9 @@
clientinlen = 0;
} else {
/* Decode the response. On error, SASL_CONTINUE should not be
- * given. Use SASL_BADPROT instead, in order to indicate
- * a base64-encoding error. */
+ * given because we know for sure that we have already received
+ * the whole challenge/response. Use SASL_BADPROT instead,
+ * in order to indicate a base64-encoding error. */
r1 = sasl_decode64(clientin, strlen(clientin),
base64, BASE64_BUF_SIZE, &clientinlen);
clientin = base64;
@@ -255,8 +256,9 @@
clientinlen = 0;
} else {
/* Decode the response. On error, SASL_CONTINUE should not be
- * given. Use SASL_BADPROT instead, in order to indicate
- * a base64-encoding error. */
+ * given because we know for sure that we have already received
+ * the whole challenge/response. Use SASL_BADPROT instead,
+ * in order to indicate a base64-encoding error. */
r1 = sasl_decode64(clientin, clientinlen,
base64, BASE64_BUF_SIZE, &clientinlen);
clientin = base64;
More information about the inn-committers
mailing list