buffalo-enc: pass the longstate option to decryption
authorFelix Fietkau <nbd@openwrt.org>
Sat, 20 Dec 2014 15:26:31 +0000 (15:26 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 20 Dec 2014 15:26:31 +0000 (15:26 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 43756

src/buffalo-enc.c

index 9eec7a0a578c825fa23207ec244ba2f499f4d183..59b66ab930cc22ac42ccbe8709e46b850d760c10 100644 (file)
@@ -85,6 +85,7 @@ static int decrypt_file(void)
 
        memset(&ep, '\0', sizeof(ep));
        ep.key = (unsigned char *) crypt_key;
+       ep.longstate = longstate;
 
        err = decrypt_buf(&ep, buf, src_len);
        if (err) {