From: Anthony Minessale Date: Mon, 3 Nov 2014 20:03:04 +0000 (-0600) Subject: FS-6956 modify commit 16365501 to use one single line which is only tolerable way... X-Git-Tag: v1.4.14~2^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5d8fa9f46efed950d69a353a193a87105a683f2;p=thirdparty%2Ffreeswitch.git FS-6956 modify commit 16365501 to use one single line which is only tolerable way to have bracket-less if stmts. --- diff --git a/src/switch_stun.c b/src/switch_stun.c index 55f8a65eac..b29c48d325 100644 --- a/src/switch_stun.c +++ b/src/switch_stun.c @@ -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)