Menu

#2741 MAXUSERNAMELEN increase problem in IMAPProxy

Development CVS
closed-fixed
None
5
2014-08-05
2010-11-16
No

It is not enough to increase MAXUSERNAMELEN in imapproxy.h from 64 to 256, but the following structure in the same header file should be updated to use MAXUSERNAMELEN instead of the hard-coded value of 64:

struct IMAPConnectionContext
{
struct IMAPConnectionDescriptor *server_conn;
char username[64]; /* username connected on this sd */
char hashedpw[16]; /* md5 hash copy of password */
time_t logouttime; /* time the user logged out last */
struct IMAPConnectionContext *next; /* linked list next pointer */
};

char username[64] should be replaced with char username[MAXUSERNAMELEN]

Discussion

  • Paul Lesniewski

    Paul Lesniewski - 2010-11-16

    Thanks very much for the catch. This issue has been resolved and will appear in the next snapshot release on our downloads page within 24 hours.

    Thanks again!

     
  • Paul Lesniewski

    Paul Lesniewski - 2010-11-16
    • assigned_to: nobody --> pdontthink
    • status: open --> closed-fixed
     

Log in to post a comment.