Revision 05476c4d proto/bfd/packets.c

View differences:

proto/bfd/packets.c
101 101
  uint err_val = 0;
102 102
  char fb[8];
103 103

  
104
  if ((sk->sport == BFD_CONTROL_PORT) && (sk->ttl < 255))
105
    DROP("wrong TTL", sk->ttl);
104
  if ((sk->sport == BFD_CONTROL_PORT) && (sk->rcv_ttl < 255))
105
    DROP("wrong TTL", sk->rcv_ttl);
106 106

  
107 107
  if (len < BFD_BASE_LEN)
108 108
    DROP("too short", len);
......
209 209
  return sk;
210 210

  
211 211
 err:
212
  sk_log_error(sk, p->p.name);
212 213
  rfree(sk);
213 214
  return NULL;
214 215
}
......
243 244
  return sk;
244 245

  
245 246
 err:
247
  sk_log_error(sk, p->p.name);
246 248
  rfree(sk);
247 249
  return NULL;
248 250
}

Also available in: Unified diff