FS-6956 modify commit 16365501
to use one single line which is only tolerable way to have bracket-less if stmts.
This commit is contained in:
parent
5dee5ce1d5
commit
b5d8fa9f46
|
@ -129,9 +129,7 @@ SWITCH_DECLARE(switch_stun_packet_t *) switch_stun_packet_parse(uint8_t *buf, ui
|
|||
packet = (switch_stun_packet_t *) buf;
|
||||
packet->header.type = ntohs(packet->header.type);
|
||||
packet->header.length = ntohs(packet->header.length);
|
||||
if (packet->header.length > (bytes_left -= 20))
|
||||
return NULL;
|
||||
|
||||
if (packet->header.length > (bytes_left -= 20)) return NULL;
|
||||
|
||||
/*
|
||||
* Check packet type (RFC3489(bis?) values)
|
||||
|
|
Loading…
Reference in New Issue