From 4e92b849affb87ceecf3f902449cef8b275932fd Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 19 Jul 2012 12:16:48 -0500 Subject: [PATCH] hso: fix small error in unlock retries checking _OERCN only reports PIN and PUK, so we only check for two values. --- plugins/option/mm-broadband-modem-hso.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/option/mm-broadband-modem-hso.c b/plugins/option/mm-broadband-modem-hso.c index acd18115..00db5c32 100644 --- a/plugins/option/mm-broadband-modem-hso.c +++ b/plugins/option/mm-broadband-modem-hso.c @@ -143,7 +143,7 @@ load_unlock_retries_ready (MMBaseModem *self, } response = mm_strip_tag (response, "_OERCN:"); - if (sscanf (response, " %d, %d", &pin1, &puk1) == 4) { + if (sscanf (response, " %d, %d", &pin1, &puk1) == 2) { MMUnlockRetries *retries; retries = mm_unlock_retries_new (); mm_unlock_retries_set (retries, MM_MODEM_LOCK_SIM_PIN, pin1);