isotpsniffer: remove duplicated code

In commit da33f96edf ("isotpsniffer: Add support for llopts") the setsockopt
call has been executed twice. (copy & paste issue?)

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/102/merge
Oliver Hartkopp 2020-02-04 08:31:48 +01:00
parent 8027b498cf
commit ae69062657
1 changed files with 0 additions and 5 deletions

View File

@ -322,11 +322,6 @@ int main(int argc, char **argv)
goto out; goto out;
} }
if ((setsockopt(s, SOL_CAN_ISOTP, CAN_ISOTP_LL_OPTS, &llopts, sizeof(llopts))) < 0) {
perror("setsockopt");
r = 1;
goto out;
}
if ((setsockopt(t, SOL_CAN_ISOTP, CAN_ISOTP_LL_OPTS, &llopts, sizeof(llopts))) < 0) { if ((setsockopt(t, SOL_CAN_ISOTP, CAN_ISOTP_LL_OPTS, &llopts, sizeof(llopts))) < 0) {
perror("setsockopt"); perror("setsockopt");
r = 1; r = 1;