summaryrefslogtreecommitdiff
path: root/proto/rpki/packets.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-12-13 20:18:11 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-12-13 20:18:11 +0100
commiteeba61ccd5d1757fd79fcb0cd42b8dee9f941d7e (patch)
tree7d2c77da552c9f880fd6d6730d8b0a1e5af20c12 /proto/rpki/packets.c
parent5e8df049fbf53220735a2eeb6c751e1758869a18 (diff)
Minor cleanups
Diffstat (limited to 'proto/rpki/packets.c')
-rw-r--r--proto/rpki/packets.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/proto/rpki/packets.c b/proto/rpki/packets.c
index b9d93106..60ca3936 100644
--- a/proto/rpki/packets.c
+++ b/proto/rpki/packets.c
@@ -531,8 +531,6 @@ rpki_send_pdu(struct rpki_cache *cache, const void *pdu, const uint len)
static int
rpki_check_receive_packet(struct rpki_cache *cache, const struct pdu_header *pdu)
{
- struct rpki_proto *p = cache->p;
- int error = RPKI_SUCCESS;
u32 pdu_len = ntohl(pdu->len);
/*
@@ -557,7 +555,6 @@ rpki_check_receive_packet(struct rpki_cache *cache, const struct pdu_header *pdu
*/
}
else if (cache->last_update == 0
- && pdu->ver >= RPKI_MIN_VERSION
&& pdu->ver <= RPKI_MAX_VERSION
&& pdu->ver < cache->version)
{
@@ -608,7 +605,6 @@ rpki_handle_error_pdu(struct rpki_cache *cache, const struct pdu_error *pdu)
case UNSUPPORTED_PROTOCOL_VER:
CACHE_TRACE(D_PACKETS, cache, "Client uses unsupported protocol version");
if (pdu->ver <= RPKI_MAX_VERSION &&
- pdu->ver >= RPKI_MIN_VERSION &&
pdu->ver < cache->version)
{
CACHE_TRACE(D_EVENTS, cache, "Downgrading from protocol version %d to version %d", cache->version, pdu->ver);