• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/wpa_supplicant_6


Commit MetaInfo

Revisão4d13ed6d3f252ef7a3ae2fd18000fb765b5c2fa1 (tree)
Hora2011-03-05 04:00:13
AutorDmitry Shmidt <dimitrysh@goog...>
CommiterDmitry Shmidt

Mensagem de Log

Check select() return value in wpa_ctrl_request()

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

Mudança Sumário

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)