sm: Handle gcry_pk_encrypt return value.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Dec 2015 03:38:25 +0000 (12:38 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 15 Dec 2015 03:44:41 +0000 (12:44 +0900)
commitb508af2b2c40a715ef5ead4455b466954c2943ee
tree0e0ab9169aa90af03e7014b222b77280fa5ba7b6
parent8729f35510550495c830fcf54f03da9a42d0a751
sm: Handle gcry_pk_encrypt return value.

* sm/encrypt.c (encrypt_dek): Don't ignore failure of gcry_pk_encrypt.

--

Thanks to Sami Farin.

GnuPG-bug-id: 2154

(backport commit of 4ee881bff4c8fdfa4b3b7a4b7afab611471e97f1)
sm/encrypt.c