X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/9d83220cefa5bf6e22fbabae688b151c107780cd..646c6b5273a2272632e50e7393f090f7c8bf06eb:/src/tlv.c diff --git a/src/tlv.c b/src/tlv.c index 99f2ba5..3119a2d 100644 --- a/src/tlv.c +++ b/src/tlv.c @@ -49,10 +49,9 @@ faim_export struct aim_tlvlist_t *aim_readtlvchain(u_char *buf, int maxlen) * theres no special cases to this special case. * - mid (30jun2000) */ - if ((type == 0x0013) && (length != 0x0002)) { - printf("faim: skipping TLV t(0013) with invalid length (0x%04x)\n", length); + if ((type == 0x0013) && (length != 0x0002)) length = 0x0002; - } else { + else { cur = (struct aim_tlvlist_t *)malloc(sizeof(struct aim_tlvlist_t)); memset(cur, 0x00, sizeof(struct aim_tlvlist_t));