sm: Avoid double-free on iconv failure
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 19 Dec 2014 23:53:34 +0000 (18:53 -0500)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 13 Jan 2015 01:52:22 +0000 (10:52 +0900)
commitced689e12a5037c6aeca62e9eaebdc098bd9c14e
tree0c8f7ff58c585c012f7aaddea3c49160a3115699
parent0fd4cd8503dfe9c3e6a362003bd647b4cd882363
sm: Avoid double-free on iconv failure

* sm/minip12.c: (p12_build) if jnlib_iconv_open fails, avoid
double-free of pwbuf.

--

Observed by Joshua Rogers <honey@internot.info>, who proposed a
slightly different fix.

Debian-Bug-Id: 773472

Added fix at a second place - wk.
agent/minip12.c