P2P: add a missing 'return' after building IE from an empty string
authorEliad Peller <eliad@wizery.com>
Wed, 30 Mar 2011 14:08:42 +0000 (17:08 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 30 Mar 2011 14:08:42 +0000 (17:08 +0300)
commit72863ea7c6a1575b25f79c44a9c5ba2bc6a45c60
tree2d7dfd7a6242a7bcdd01d452d7a440949fa183fd
parente4bf4db907a8a2d0496d1a184f2574c7f7f1f7f1
P2P: add a missing 'return' after building IE from an empty string

When building IE from an empty string and CONFIG_WPS_STRICT is
not defined, redundant 2 bytes are being added to the string.

We have to return right after building the "dummy" string.

Signed-off-by: Eliad Peller <eliad@wizery.com>
src/p2p/p2p_build.c