]> granicus.if.org Git - mutt/commitdiff
Fix the underlying problem behind mutt/2107.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 31 Oct 2005 10:51:54 +0000 (10:51 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 31 Oct 2005 10:51:54 +0000 (10:51 +0000)
mutt_idna.c

index c2db32574aeb019aeaa970ccbaf3fcc370d5f8d5..36915a45c7c27dce1ee79e99aacdf46cc9bd05bb 100644 (file)
@@ -132,7 +132,7 @@ static int mbox_to_udomain (const char *mbx, char **user, char **domain)
   *domain = NULL;
   
   p = strchr (mbx, '@');
-  if (!p)
+  if (!p || !p[1])
     return -1;
   *user = safe_calloc((p - mbx + 1), sizeof(mbx[0]));
   strfcpy (*user, mbx, (p - mbx + 1));