summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-08-08 20:35:04 +0200
committerGitHub <noreply@github.com>2018-08-08 20:35:04 +0200
commite7e81aefe46ce484a8dc629f7b52833e85625fbd (patch)
treea224c6ff654e5d08d38bcbfb8fb9d5412484cd57
parenta6c3e82348135f4c4e21f8129fa925db40c18ea2 (diff)
parent558c6842f76897c2a7e48e5c00cfae6da4c04118 (diff)
Merge pull request #2790 from lyq140/branch1
don't send packets when auth_str is empty (via keychain.)
-rw-r--r--ripd/ripd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index f7d6d3d929..8032cf2ec5 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) {