Fixed a bug in read -> _read cleanup; one missed change
authorJouke Witteveen <j.witteveen@gmail.com>
Wed, 19 Nov 2008 19:20:24 +0000 (21:20 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 19 Nov 2008 19:20:24 +0000 (21:20 +0200)
src/drivers/driver_roboswitch.c

index 43c800f..519f893 100644 (file)
@@ -256,7 +256,7 @@ static int wpa_driver_roboswitch_leave(struct wpa_driver_roboswitch_data *drv,
                if (_read[0] == drv->ports) {
                        wpa_driver_roboswitch_read(drv, ROBO_ARLCTRL_PAGE,
                                                   mport[i + 1], _read, 3);
-                       if (os_memcmp(read, addr_word, 6) == 0)
+                       if (os_memcmp(_read, addr_word, 6) == 0)
                                break;
                }
        }