summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldpd/address.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldpd/address.c b/ldpd/address.c
index cb2f505f7b..25c03b811b 100644
--- a/ldpd/address.c
+++ b/ldpd/address.c
@@ -162,7 +162,7 @@ recv_address(struct nbr *nbr, char *buf, uint16_t len)
return (-1);
}
if (ntohs(alt.type) != TLV_TYPE_ADDRLIST) {
- session_shutdown(nbr, S_UNKNOWN_TLV, msg.id, msg.type);
+ send_notification(nbr->tcp, S_MISS_MSG, msg.id, msg.type);
return (-1);
}
switch (ntohs(alt.family)) {
@@ -242,7 +242,7 @@ gen_address_list_tlv(struct ibuf *buf, uint16_t size, int af,
int err = 0;
memset(&alt, 0, sizeof(alt));
- alt.type = TLV_TYPE_ADDRLIST;
+ alt.type = htons(TLV_TYPE_ADDRLIST);
alt.length = htons(size - TLV_HDR_SIZE);
switch (af) {