]> granicus.if.org Git - curl/commit
openssl: fix use of uninitialized buffer
authorDaniel Stenberg <daniel@haxx.se>
Thu, 18 Jun 2015 12:20:31 +0000 (14:20 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 18 Jun 2015 12:20:31 +0000 (14:20 +0200)
commit26ddc536b0ab5fc62d6503c82c34dd3dbf112dc3
tree8f2e6b5e9503077a788aff8c14665a2a5f7d6513
parent0e7d76d6a87bbae77af0bf37bed4428748295a44
openssl: fix use of uninitialized buffer

Make sure that the error buffer is always initialized and simplify the
use of it to make the logic easier.

Bug: https://github.com/bagder/curl/issues/318
Reported-by: sneis
lib/vtls/openssl.c