diff options
author | paul <paul> | 2005-05-29 11:27:24 +0000 |
---|---|---|
committer | paul <paul> | 2005-05-29 11:27:24 +0000 |
commit | 7b75d17293f3317fc28accc2cdb5a5b6bf9c947c (patch) | |
tree | 2b4c9fc53342e1edbd752d1ffaa958774d2bda3b /ripd/ripd.c | |
parent | 43fbfe1b5fb2e88edcde4c093e47bed509b2962f (diff) | |
download | quagga-7b75d17293f3317fc28accc2cdb5a5b6bf9c947c.tar.bz2 quagga-7b75d17293f3317fc28accc2cdb5a5b6bf9c947c.tar.xz |
2005-05-29 Paul Jakma <paul@dishone.st>
* ripd.c: (rip_output_process) fix error which crept in my
previous rip auth untanglement commit - it had become impossible
to not have authentication (even for v1).
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index 3dd91dae..4723ebe0 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -2346,9 +2346,8 @@ rip_output_process (struct connected *ifc, struct sockaddr_in *to, stream_putc (s, version); stream_putw (s, 0); - /* auth header for simple or v2 && MD5 */ - if ( (ri->auth_type == RIP_AUTH_SIMPLE_PASSWORD) - || (version == RIPv2 && ri->auth_type == RIP_AUTH_MD5) ) + /* auth header for !v1 && !no_auth */ + if ( (ri->auth_type != RIP_NO_AUTH) && (version != RIPv1) ) doff = rip_auth_header_write (s, ri, key, auth_str, RIP_AUTH_SIMPLE_SIZE); } |