Index: checkpw.c
===================================================================
RCS file: /afs/andrew.cmu.edu/system/cvs/src/sasl/lib/checkpw.c,v
retrieving revision 1.32
diff -u -r1.32 checkpw.c
--- checkpw.c	2000/03/09 04:52:26	1.32
+++ checkpw.c	2000/03/10 00:58:43
@@ -554,13 +554,9 @@
 	/* otherwise, we gotta get it from the user */
 	r = strchr(input, '@');
 	if (!r) {
-	    *realm = sasl_ALLOC(1);
-	    if (*realm) {
-		(*realm)[0] = '\0';
-		ret = SASL_OK;
-	    } else {
-		ret = SASL_NOMEM;
-	    }
+	    /* hmmm, the user didn't specify a realm */
+	    /* we'll default to the serverFQDN */
+	    ret = _sasl_strdup(serverFQDN, realm, NULL);
 	    if (ret == SASL_OK) {
 		ret = _sasl_strdup(input, user, NULL);
 	    }

