$NetBSD: patch-af,v 1.5 2004/02/14 03:16:59 jlam Exp $

--- plugins/cram.c.orig	Mon Nov  3 10:25:24 2003
+++ plugins/cram.c
@@ -531,7 +531,8 @@ static int crammd5_client_mech_step(void
 	
 	if ((auth_result != SASL_OK) && (auth_result != SASL_INTERACT))
 	    return auth_result;
-    }
+    } else
+	authid = oparams->authid;
     
     /* try to get the password */
     if (password == NULL) {
