Thanks to visit codestin.com
Credit goes to github.com

Skip to content

POP3, questionable handling of '-ERR...' response on 'STLS' #12063

@icing

Description

@icing

I did this

CURL_DBG_SOCK_RMAX=4 ./runtests.pl -v 982

I expected the following

The test to succeed.

The difference is that pop3_state_starttls_resp() in pop3.c:789 behaves differently depending on the pp.cache_size. With small recv(), cache_size is 0, where on "normal" test runs, additional response data is in the cache.

Since CURLUSESSL_TRY is active, test982 proceeds with user authentication where in "normal" run, it does not.

curl/libcurl version

curl 8.4.0-DEV

operating system

macOS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions