Skip to content

Commit

Permalink
ldpd: Clarify error situation for different problems
Browse files Browse the repository at this point in the history
Clarify the fatal error message recorded when an error situation
happens.  Disambiguating the default case from the TLV_TYPE_DYNAMIC_CAP
case.

Signed-off-by: Donald Sharp <[email protected]>
  • Loading branch information
donaldsharp committed Oct 13, 2023
1 parent df03bf9 commit 237aed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ldpd/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,11 @@ send_capability(struct nbr *nbr, uint16_t capability, int enable)
* Announcement Parameter in Capability messages sent to
* its peers".
*/
/* FALLTHROUGH */
fatalx("send_capability: An LDP speaker MUST NOT include the Dynamic Capability Announcement Parameter");
break;
default:
fatalx("send_capability: unsupported capability");
break;
}

if (err) {
Expand Down

0 comments on commit 237aed5

Please sign in to comment.