Module Name:    src
Committed By:   kefren
Date:           Mon Jan 28 20:32:05 UTC 2013

Modified Files:
        src/usr.sbin/ldpd: socketops.c

Log Message:
permit notifications even if session not fully established


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/usr.sbin/ldpd/socketops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/ldpd/socketops.c
diff -u src/usr.sbin/ldpd/socketops.c:1.21 src/usr.sbin/ldpd/socketops.c:1.22
--- src/usr.sbin/ldpd/socketops.c:1.21	Mon Jan 28 20:06:52 2013
+++ src/usr.sbin/ldpd/socketops.c	Mon Jan 28 20:32:04 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: socketops.c,v 1.21 2013/01/28 20:06:52 kefren Exp $ */
+/* $NetBSD: socketops.c,v 1.22 2013/01/28 20:32:04 kefren Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -1072,7 +1072,8 @@ recv_session_pdu(struct ldp_peer * p)
 		/* Should we get the message ? */
 		if (p->state != LDP_PEER_ESTABLISHED &&
 		    ntohs(ttmp->type) != LDP_INITIALIZE &&
-		    ntohs(ttmp->type) != LDP_KEEPALIVE)
+		    ntohs(ttmp->type) != LDP_KEEPALIVE &&
+		    ntohs(ttmp->type) != LDP_NOTIFICATION)
 			break;
 		/* The big switch */
 		switch (ntohs(ttmp->type)) {

Reply via email to