Avoid a possible crash in tls_log_errors.
commit4ad5094c9093f342a1f96fac7d90eb1781321e9a
authorNick Mathewson <nickm@torproject.org>
Fri, 22 Jan 2010 21:32:15 +0000 (22 16:32 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 22 Jan 2010 21:32:15 +0000 (22 16:32 -0500)
tree566ce4e256b8194c4b455972a3d1c53e7567211c
parent1fc94bfd0e0b2ab70ec51c35acde6330c8a7fd1d
Avoid a possible crash in tls_log_errors.

We were checking for msg==NULL, but not lib or proc.  This case can
only occur if we have an error whose string we somehow haven't loaded,
but it's worth coding defensively here.

Spotted by rieo on IRC.
src/common/tortls.c