X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=imap%2Fauth.c;h=04fe6712864f9c496a21ae3e256e7ef97a765fa3;hp=7c6293d29cc44ccc862ea41b731bb043f7de08a3;hb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;hpb=9218fd9d7e2a7976b34683c60cb94f7fda42141a diff --git a/imap/auth.c b/imap/auth.c index 7c6293d..04fe671 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -15,12 +15,13 @@ # include "config.h" #endif -#include "lib/mem.h" -#include "lib/intl.h" +#include + +#include +#include #include "lib/debug.h" #include "mutt.h" -#include "ascii.h" #include "imap_private.h" #include "auth.h" @@ -54,7 +55,7 @@ int imap_authenticate (IMAP_DATA * idata) if (ImapAuthenticators && *ImapAuthenticators) { /* Try user-specified list of authentication methods */ - methods = str_dup (ImapAuthenticators); + methods = m_strdup(ImapAuthenticators); for (method = methods; method; method = delim) { delim = strchr (method, ':'); @@ -71,7 +72,7 @@ int imap_authenticate (IMAP_DATA * idata) !ascii_strcasecmp (authenticator->method, method)) if ((r = authenticator->authenticate (idata, method)) != IMAP_AUTH_UNAVAIL) { - mem_free (&methods); + p_delete(&methods); return r; } @@ -79,7 +80,7 @@ int imap_authenticate (IMAP_DATA * idata) } } - mem_free (&methods); + p_delete(&methods); } else { /* Fall back to default: any authenticator */