Skip to content

Empty proxy password is sent to server as '(nil)' #5613

@kristofg

Description

@kristofg

I did this

Scenario is the same as #5601: We're doing proxy authentication using basic auth, username "proxyuser" and an empty password. This works fine for us on 7.70.0, but breaks when upgrading to 7.71.0. Looking at the debug logs we see the following when responding to the proxy 407:

[header OUT] Proxy-Authorization: Basic cHJveHl1c2VyOihuaWwp

The base64 part decodes to proxyuser:(nil), which doesn't look right.

Looking at the code it's tempting to suspect that this (nil) string originates from dprintf_formatf, possibly coming down from this printf?

curl/libcurl version

7.71.0

operating system

Linux

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions