X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth.c;h=23473e192c5d56589a2a0a00075f2e5bc27dba36;hp=448220ea31ed5959601e6f3a912c7a2a4793ceea;hb=dc814094109d4db834d618adb00e0b6ff2bbfa09;hpb=814a01519c9605d479201b99eb16c97b0ad8635d diff --git a/imap/auth.c b/imap/auth.c index 448220e..23473e1 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -20,6 +20,7 @@ #include "lib/debug.h" #include "mutt.h" +#include "ascii.h" #include "imap_private.h" #include "auth.h" @@ -53,7 +54,7 @@ int imap_authenticate (IMAP_DATA * idata) if (ImapAuthenticators && *ImapAuthenticators) { /* Try user-specified list of authentication methods */ - methods = safe_strdup (ImapAuthenticators); + methods = str_dup (ImapAuthenticators); for (method = methods; method; method = delim) { delim = strchr (method, ':'); @@ -70,7 +71,7 @@ int imap_authenticate (IMAP_DATA * idata) !ascii_strcasecmp (authenticator->method, method)) if ((r = authenticator->authenticate (idata, method)) != IMAP_AUTH_UNAVAIL) { - FREE (&methods); + mem_free (&methods); return r; } @@ -78,7 +79,7 @@ int imap_authenticate (IMAP_DATA * idata) } } - FREE (&methods); + mem_free (&methods); } else { /* Fall back to default: any authenticator */