Changeset 5497:2731e5174c5a for imap

Show
Ignore:
Timestamp:
2008-08-26 23:09:13 (3 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Properly set the SASL external auth name when using SSL client certs.
Also zero out the account structure before filling it with available
data. Client certificates + SASL EXTERNAL were only working by luck.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/util.c

    r5495 r5497  
    22 * Copyright (C) 1996-8 Michael R. Elkins <me@mutt.org> 
    33 * Copyright (C) 1996-9 Brandon Long <blong@fiction.net> 
    4  * Copyright (C) 1999-2005 Brendan Cully <brendan@kublai.com> 
     4 * Copyright (C) 1999-2008 Brendan Cully <brendan@kublai.com> 
    55 *  
    66 *     This program is free software; you can redistribute it and/or modify 
     
    190190 
    191191  /* Defaults */ 
    192   mx->account.flags = 0; 
     192  memset(&mx->account, 0, sizeof(mx->account)); 
    193193  mx->account.port = ImapPort; 
    194194  mx->account.type = M_ACCT_TYPE_IMAP;