Page MenuHome GnuPG

uninitialized err on p12_parse
Closed, ResolvedPublic


Prompted by a gcc warning of

‘err’ may be used uninitialized in this function

I checked p12_parse and indeed, after the PKCS#12 rewrite of

there are a number of error paths going to bailout (which prints gpg_strerror (err))
but not setting err.

Fix seems quite simple, albeit it turns out to be a bit noisy at the line level.

Revisions and Commits

Event Timeline

Angel created this object in space S1 Public.

werner added a subscriber: werner.

Thanks. Applied to 2.4 will eventually be merged into master.