hso: fix small error in unlock retries checking

_OERCN only reports PIN and PUK, so we only check for two values.
This commit is contained in:
Dan Williams
2012-07-19 12:16:48 -05:00
committed by Aleksander Morgado
parent 32bc031ae6
commit 4e92b849af

View File

@@ -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);