Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1:Update
balsa
balsa-CVE-2020-16118-boo1174711.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File balsa-CVE-2020-16118-boo1174711.dif of Package balsa
Index: balsa-2.5.5/libbalsa/imap/imap-handle.c =================================================================== --- balsa-2.5.5.orig/libbalsa/imap/imap-handle.c +++ balsa-2.5.5/libbalsa/imap/imap-handle.c @@ -823,7 +823,7 @@ imap_mbox_connect(ImapMboxHandle* handle imap_handle_disconnect(handle); return IMAP_PROTOCOL_ERROR; } - handle->can_fetch_body = + handle->can_fetch_body = (handle->last_msg != NULL) && (strncmp(handle->last_msg, "Microsoft Exchange", 18) != 0); if(handle->over_ssl) resp = IMR_OK; /* secured already with SSL */ @@ -2593,9 +2593,13 @@ ir_bad(ImapMboxHandle *h) static ImapResponse ir_preauth(ImapMboxHandle *h) { - if(imap_mbox_handle_get_state(h) == IMHS_CONNECTED) - imap_mbox_handle_set_state(h, IMHS_AUTHENTICATED); - return IMR_OK; + ImapResponse resp; + + resp = ir_ok(h); + if ((resp == IMR_OK) && (imap_mbox_handle_get_state(h) == IMHS_CONNECTED)) { + imap_mbox_handle_set_state(h, IMHS_AUTHENTICATED); + } + return resp; } /* ir_bye:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor