comparison 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
comparison
equal deleted inserted replaced
84:1b61fd7c6fde 85:28ba9315a30c
318 318
319 buf = sbuf; /* default */ 319 buf = sbuf; /* default */
320 320
321 if(use_b25) { 321 if(use_b25) {
322 code = b25_decode(dec, &sbuf, &dbuf); 322 code = b25_decode(dec, &sbuf, &dbuf);
323 if(code < 0) 323 if(code < 0) {
324 fprintf(stderr, "b25_decode failed\n"); 324 fprintf(stderr, "b25_decode failed. fall back to encrypted recording.\n");
325 use_b25 = FALSE; /* local flag */
326 }
325 else 327 else
326 buf = dbuf; 328 buf = dbuf;
327 } 329 }
328 330
329 if(!fileless) { 331 if(!fileless) {