p2p: Fix returned error code in p2p_listen
authorWiktor Lawski <wiktor.lawski@tieto.com>
Mon, 10 Sep 2012 07:41:25 +0000 (09:41 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Sep 2012 08:54:23 +0000 (10:54 +0200)
commite0ea3dfc80943a6d644cdf64a1e7cf6a99c98adc
tree5944462abea79fcba5a9093f24befccb8b1e2ca4
parent3b71ef6dca125093c20576674b3b8816baf49a99
p2p: Fix returned error code in p2p_listen

In the previous version that function always returned 0 because of logical
error. Now when all bindings fail it will return -1.
plugins/p2p.c