1
diff -ruN cyrus-sasl-2.1.19.dfsg1-old/plugins/digestmd5.c cyrus-sasl-2.1.19.dfsg1/plugins/digestmd5.c
2
--- cyrus-sasl-2.1.19.dfsg1-old/plugins/digestmd5.c 2006-04-24 11:56:11.000000000 +0200
3
+++ cyrus-sasl-2.1.19.dfsg1/plugins/digestmd5.c 2006-04-24 11:57:04.000000000 +0200
7
/* Sanity check the parameters */
8
- if (strcmp(realm, text->realm) != 0) {
9
+ if (((realm != NULL) && (strcmp(realm, text->realm) != 0)) &&
10
+ (text->realm[0] != 0)) {
11
SETERROR(sparams->utils,
12
"realm changed: authentication aborted");
13
result = SASL_BADAUTH;