Mercurial > pt1.oyama
diff recpt1/recpt1.c @ 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 | 0b00d22b0d1c |
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; }