Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
descrambler: fix another thinko (and crash)
  • Loading branch information
perexg committed Mar 27, 2015
1 parent 722c925 commit e4cdd3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/descrambler/descrambler.c
Expand Up @@ -421,7 +421,7 @@ descrambler_descramble ( service_t *t,
ki = tsb2[3];
if ((ki & 0x80) != 0x00) {
if (key_valid(dr, ki) == 0) {
sbuf_cut(&dr->dr_buf, tsb2 - tsb);
sbuf_cut(&dr->dr_buf, tsb2 - dr->dr_buf.sb_data);
flush_data = 1;
goto next;
}
Expand Down

0 comments on commit e4cdd3c

Please sign in to comment.