From: Michael Gernoth Date: Wed, 10 Jul 2013 13:13:08 +0000 (+0200) Subject: setting an AES encryption key (Y) needs a length-byte X-Git-Tag: v0.100~69 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb/commitdiff_plain/d419ace317f5a2505fd7ec735452af9d36a6ec87?hp=ec30827c59527dfe961b0617f509c78f6ac39ce4 setting an AES encryption key (Y) needs a length-byte --- diff --git a/hmland.c b/hmland.c index aa5f277..0ec09a7 100644 --- a/hmland.c +++ b/hmland.c @@ -307,6 +307,10 @@ static int hmlan_parse_in(int fd, void *data) parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0); parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE); break; + case 'Y': + parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0); + parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), 0); + parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_LENGTH_BYTE); default: parse_part_in(&inpos, (last-(inpos-instart)), &outpos, (sizeof(out)-(outpos-out)), FLAG_IGNORE_COMMAS); break;