X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Fauth.c;h=04fe6712864f9c496a21ae3e256e7ef97a765fa3;hb=51c07577bff89fde3038940cc06ac01bc28557b9;hp=f5af43f9726dac031a76de6b65b92a2555ce885e;hpb=a8477ebaa09990b3688164cbe5cf661c4189541d;p=apps%2Fmadmutt.git diff --git a/imap/auth.c b/imap/auth.c index f5af43f..04fe671 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -15,8 +15,10 @@ # include "config.h" #endif -#include "lib/mem.h" -#include "lib/intl.h" +#include + +#include +#include #include "lib/debug.h" #include "mutt.h" @@ -38,7 +40,7 @@ static imap_auth_t imap_authenticators[] = { #endif {imap_auth_login, "login"}, - {NULL} + {NULL, NULL} }; /* imap_authenticate: Attempt to authenticate using either user-specified @@ -53,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, ':'); @@ -70,7 +72,7 @@ int imap_authenticate (IMAP_DATA * idata) !ascii_strcasecmp (authenticator->method, method)) if ((r = authenticator->authenticate (idata, method)) != IMAP_AUTH_UNAVAIL) { - FREE (&methods); + p_delete(&methods); return r; } @@ -78,7 +80,7 @@ int imap_authenticate (IMAP_DATA * idata) } } - FREE (&methods); + p_delete(&methods); } else { /* Fall back to default: any authenticator */