summaryrefslogtreecommitdiff
path: root/isisd/isis_tlv.c
diff options
context:
space:
mode:
authorhasso <hasso>2004-09-15 16:21:59 +0000
committerhasso <hasso>2004-09-15 16:21:59 +0000
commit53c997c90d7e20313bfb07d15d83b782d7a6530e (patch)
tree6f3299d7bd9a8d3be6914cc7a34acfc2ea2e9071 /isisd/isis_tlv.c
parentbbc9ce2aa3985f3df242d2be49ebcc2bc6dd7f3a (diff)
Second part of fixes from Laurent Rabret.
Diffstat (limited to 'isisd/isis_tlv.c')
-rw-r--r--isisd/isis_tlv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/isisd/isis_tlv.c b/isisd/isis_tlv.c
index 273d19c2..70b3c177 100644
--- a/isisd/isis_tlv.c
+++ b/isisd/isis_tlv.c
@@ -463,6 +463,7 @@ parse_tlvs (char *areatag, u_char * stream, int size, u_int32_t * expected,
if (*expected & TLVFLAG_AUTH_INFO)
{
tlvs->auth_info.type = *pnt;
+ tlvs->auth_info.len = length-1;
pnt++;
memcpy (tlvs->auth_info.passwd, pnt, length - 1);
pnt += length - 1;
@@ -885,7 +886,7 @@ tlv_add_authinfo (char auth_type, char auth_len, char *auth_value,
{
u_char value[255];
u_char *pos = value;
- pos++;
+ *pos++ = ISIS_PASSWD_TYPE_CLEARTXT;
memcpy (pos, auth_value, auth_len);
return add_tlv (AUTH_INFO, auth_len + 1, value, stream);