HomeFreeBSD

libbsnmptools: avoid uninitialized snmptoolctx->passwd with empty password

Description

libbsnmptools: avoid uninitialized snmptoolctx->passwd with empty password

The removed check left snmptoolctx->passwd pointer to uninitialized
memory. Always calling strlcpy(3) would guarantee that with empty
password it will point to empty string.

Submitted by: markj
PR: 283909

(cherry picked from commit 3999a860d6e899de98b1025317d2d0ef1f83255f)
(cherry picked from commit 0bfbd30663b68a851ebf24667d121c6891c86827)

Details

Provenance
glebiusAuthored on Sat, Jan 11, 5:08 AM
emasteCommitted on Mon, Jan 20, 2:28 PM
Parents
rGeeecaa064c8d: cam: clear stack-allocated CCB in the target layer
Branches
Unknown
Tags
Unknown