X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fap%2Fwps_hostapd.c;h=69434c8c9acaed458230df63d72baa896161ace5;hb=a80ba67a26f51d61fc5875a22912c1316f1e1536;hp=c4d7194a30c3ba42afc85148ff4b78971a6da724;hpb=a9aaacbb5081f41318ddb0fa597da6c29c6898df;p=mech_eap.git diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index c4d7194..69434c8 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -185,7 +185,7 @@ static void hostapd_wps_pin_needed_cb(void *ctx, const u8 *uuid_e, dev->model_number, dev->serial_number, wps_dev_type_bin2str(dev->pri_dev_type, devtype, sizeof(devtype))); - if (len > 0 && len < (int) sizeof(txt)) + if (!os_snprintf_error(sizeof(txt), len)) wpa_msg(hapd->msg_ctx, MSG_INFO, "%s", txt); if (hapd->conf->wps_pin_requests) {