From: lyq140 <34637052+lyq140@users.noreply.github.com> Date: Mon, 6 Aug 2018 02:46:58 +0000 (+0800) Subject: ripd: fix packet sending X-Git-Tag: frr-6.1-dev~83^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ac000da998362c07be0e045b92a38f439444603a;p=matthieu%2Ffrr.git ripd: fix packet sending fix a bug when sending a rip packet. in authenticate mode but without any string, no packet should send. Signed-off-by: lyq140 <34637052+lyq140@users.noreply.github.com> --- diff --git a/ripd/ripd.c b/ripd/ripd.c index f7d6d3d929..dea3e40ae3 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -2101,6 +2101,9 @@ void rip_output_process(struct connected *ifc, struct sockaddr_in *to, /* to be passed to auth functions later */ rip_auth_prepare_str_send(ri, key, auth_str, RIP_AUTH_SIMPLE_SIZE); + if (0 == strlen(auth_str)) { + return; + } } if (version == RIPv1) {