• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

external/wpa_supplicant_6


Commit MetaInfo

Revision4d13ed6d3f252ef7a3ae2fd18000fb765b5c2fa1 (tree)
Zeit2011-03-05 04:00:13
AutorDmitry Shmidt <dimitrysh@goog...>
CommiterDmitry Shmidt

Log Message

Check select() return value in wpa_ctrl_request()

Change-Id: I7bd8bbae8a5d74ef576de3e3b3f08473fc9b6d0b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Ändern Zusammenfassung

Diff

--- a/wpa_supplicant/src/common/wpa_ctrl.c
+++ b/wpa_supplicant/src/common/wpa_ctrl.c
@@ -332,6 +332,8 @@ int wpa_ctrl_request(struct wpa_ctrl *ctrl, const char *cmd, size_t cmd_len,
332332 FD_ZERO(&rfds);
333333 FD_SET(ctrl->s, &rfds);
334334 res = select(ctrl->s + 1, &rfds, NULL, NULL, &tv);
335+ if (res < 0)
336+ return res;
335337 if (FD_ISSET(ctrl->s, &rfds)) {
336338 res = recv(ctrl->s, reply, *reply_len, 0);
337339 if (res < 0)