summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/packet.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:06:09 +0000
committerRenato Westphal <renato@cvs.openbsd.org>2016-05-23 16:06:09 +0000
commit960a41bce4d794d6d183c192d4ee2fd1f6021296 (patch)
tree6cba2413004b0b92a0724f3eb41d15ab24b97284 /usr.sbin/ldpd/packet.c
parent191457d58b9d6aba25eaf432aae8f2b6cc81af8f (diff)
Don't ignore notification messages before the session is operational.
This was preventing us from triggering the backoff exponential timer after receiving a 'No Hello' notification.
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r--usr.sbin/ldpd/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index cdae6fbbf22..6ea5aafd4d8 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.47 2016/05/23 16:04:04 renato Exp $ */
+/* $OpenBSD: packet.c,v 1.48 2016/05/23 16:06:08 renato Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -428,7 +428,6 @@ session_read(int fd, short event, void *arg)
return;
}
break;
- case MSG_TYPE_NOTIFICATION:
case MSG_TYPE_ADDR:
case MSG_TYPE_ADDRWITHDRAW:
case MSG_TYPE_LABELMAPPING:
@@ -436,7 +435,6 @@ session_read(int fd, short event, void *arg)
case MSG_TYPE_LABELWITHDRAW:
case MSG_TYPE_LABELRELEASE:
case MSG_TYPE_LABELABORTREQ:
- default:
if (nbr->state != NBR_STA_OPER) {
session_shutdown(nbr, S_SHUTDOWN,
ldp_msg->msgid, ldp_msg->type);
@@ -444,6 +442,8 @@ session_read(int fd, short event, void *arg)
return;
}
break;
+ default:
+ break;
}
/* switch LDP packet type */