Mercurial > pt1
changeset 85:28ba9315a30c
falls back to encrypted recording when b25_decode fails.
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Tue, 19 Jan 2010 06:13:40 +0900 |
parents | 1b61fd7c6fde |
children | 015481a6a900 |
files | recpt1/recpt1.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/recpt1/recpt1.c Wed Jan 13 17:14:43 2010 +0900 +++ b/recpt1/recpt1.c Tue Jan 19 06:13:40 2010 +0900 @@ -320,8 +320,10 @@ if(use_b25) { code = b25_decode(dec, &sbuf, &dbuf); - if(code < 0) - fprintf(stderr, "b25_decode failed\n"); + if(code < 0) { + fprintf(stderr, "b25_decode failed. fall back to encrypted recording.\n"); + use_b25 = FALSE; /* local flag */ + } else buf = dbuf; }