From ea9b2a858a7960a27e2b985bb42f85f129ddac1a Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Sun, 25 May 2014 00:26:47 +0200 Subject: [PATCH] der_encode_utf8_string: calm coverity --- src/pk/asn1/der/utf8/der_encode_utf8_string.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pk/asn1/der/utf8/der_encode_utf8_string.c b/src/pk/asn1/der/utf8/der_encode_utf8_string.c index ec4f3e7..7a782f1 100644 --- a/src/pk/asn1/der/utf8/der_encode_utf8_string.c +++ b/src/pk/asn1/der/utf8/der_encode_utf8_string.c @@ -79,6 +79,7 @@ int der_encode_utf8_string(const wchar_t *in, unsigned long inlen, out[x++] = (unsigned char)((len>>8)&255); out[x++] = (unsigned char)(len&255); } else { + /* coverity[dead_error_line] */ return CRYPT_INVALID_ARG; }