diff options
author | Changqing Li <changqing.li@windriver.com> | 2018-08-09 13:16:46 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-11 20:16:53 -0700 |
commit | 03bd2580219ddfc86e33af455a8c90e9c0e1dfe2 (patch) | |
tree | 301958ff4d4dc444dd0d3c3d96b2e5546cf7106d /meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch | |
parent | 576515a07ce788f5f5c380932cb01ff84776f229 (diff) | |
download | meta-openembedded-contrib-03bd2580219ddfc86e33af455a8c90e9c0e1dfe2.tar.gz |
net-snmp: upgrade 5.7.3 -> 5.8
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch')
-rw-r--r-- | meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch index af242fafb2..778b40188b 100644 --- a/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch +++ b/meta-networking/recipes-protocols/net-snmp/net-snmp/0001-snmplib-keytools.c-Don-t-check-for-return-from-EVP_M.patch @@ -1,7 +1,8 @@ -From d3027a227bc0f603a5b650d01f97ee1dec515be5 Mon Sep 17 00:00:00 2001 +From 89538a973119f1bf976b3a6df157ea940cf32eb5 Mon Sep 17 00:00:00 2001 From: Khem Raj <raj.khem@gmail.com> Date: Fri, 18 Sep 2015 00:28:45 -0400 Subject: [PATCH] snmplib/keytools.c: Don't check for return from + EVP_MD_CTX_init() EVP_MD_CTX_init() API returns void, it fixes errors with new compilers @@ -9,16 +10,16 @@ EVP_MD_CTX_init() API returns void, it fixes errors with new compilers snmplib/keytools.c: In function 'generate_Ku': error: invalid use of void expression Signed-off-by: Khem Raj <raj.khem@gmail.com> + --- -Upstream-Status: Submitted [https://sourceforge.net/p/net-snmp/patches/1317/] snmplib/keytools.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snmplib/keytools.c b/snmplib/keytools.c -index 0ccb3a6..880fc14 100644 +index 2cf0240..50fd3ea 100644 --- a/snmplib/keytools.c +++ b/snmplib/keytools.c -@@ -153,8 +153,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, +@@ -186,8 +186,7 @@ generate_Ku(const oid * hashtype, u_int hashtype_len, ctx = EVP_MD_CTX_create(); #else ctx = malloc(sizeof(*ctx)); @@ -26,8 +27,5 @@ index 0ccb3a6..880fc14 100644 - return SNMPERR_GENERR; + EVP_MD_CTX_init(ctx); #endif - #ifndef NETSNMP_DISABLE_MD5 - if (ISTRANSFORM(hashtype, HMACMD5Auth)) { --- -2.5.2 - + if (!EVP_DigestInit(ctx, hashfn)) + return SNMPERR_GENERR; |