mirror of https://github.com/getdnsapi/getdns.git
Fxies for two NetBSD compiler warnings
ubkey-pinning.c -o pubkey-pinning.lo ./pubkey-pinning.c: In function '_getdns_verify_pinset_match': ./pubkey-pinning.c:385: warning: 'prev' may be used uninitialized in this function IX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -c ./context.c -o context.lo ./context.c: In function '_getdns_upstream_shutdown': ./context.c:760: warning: comparison between signed and unsigned
This commit is contained in:
parent
3d45a77884
commit
b2ac3849b7
|
@ -756,7 +756,7 @@ _getdns_upstream_shutdown(getdns_upstream *upstream)
|
|||
uint16_t conn_retries = upstream->upstreams->tls_connection_retries;
|
||||
/* [TLS1]TODO: This arbitrary logic at the moment - review and improve!*/
|
||||
if (upstream->conn_setup_failed >= conn_retries
|
||||
|| (upstream->conn_shutdowns >= conn_retries*GETDNS_TRANSPORT_FAIL_MULT
|
||||
|| ((int)upstream->conn_shutdowns >= conn_retries*GETDNS_TRANSPORT_FAIL_MULT
|
||||
&& upstream->total_responses == 0)
|
||||
|| (upstream->conn_completed >= conn_retries &&
|
||||
upstream->total_responses == 0 &&
|
||||
|
|
|
@ -382,7 +382,7 @@ _getdns_verify_pinset_match(const sha256_pin_t *pinset,
|
|||
X509_STORE_CTX *store)
|
||||
{
|
||||
getdns_return_t ret = GETDNS_RETURN_GENERIC_ERROR;
|
||||
X509 *x, *prev;
|
||||
X509 *x, *prev = NULL;
|
||||
int i, len;
|
||||
unsigned char raw[4096];
|
||||
unsigned char *next;
|
||||
|
|
Loading…
Reference in New Issue