diff options
author | David Lamparter <equinox@diac24.net> | 2018-08-08 20:35:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 20:35:04 +0200 |
commit | e7e81aefe46ce484a8dc629f7b52833e85625fbd (patch) | |
tree | a224c6ff654e5d08d38bcbfb8fb9d5412484cd57 | |
parent | Merge pull request #2794 from netravnen/feature/docs/set-origin (diff) | |
parent | ripd: fix packet sending in authenticate mode (diff) | |
download | frr-e7e81aefe46ce484a8dc629f7b52833e85625fbd.tar.xz frr-e7e81aefe46ce484a8dc629f7b52833e85625fbd.zip |
Merge pull request #2790 from lyq140/branch1
don't send packets when auth_str is empty (via keychain.)
-rw-r--r-- | ripd/ripd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index f7d6d3d92..8032cf2ec 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -2101,6 +2101,8 @@ 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 (strlen(auth_str) == 0) + return; } if (version == RIPv1) { |