aboutsummaryrefslogtreecommitdiff
path: root/plugins/option
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2012-07-19 12:16:48 -0500
committerAleksander Morgado <aleksander@lanedo.com>2012-08-06 20:07:26 +0200
commit4e92b849affb87ceecf3f902449cef8b275932fd (patch)
treea1f12b40bd728d657b9db1b6d5f6d3b9d793c1e7 /plugins/option
parent32bc031ae6a8a76818bb0e8cf8f2ea5180c959a7 (diff)
hso: fix small error in unlock retries checking
_OERCN only reports PIN and PUK, so we only check for two values.
Diffstat (limited to 'plugins/option')
-rw-r--r--plugins/option/mm-broadband-modem-hso.c2
1 files changed, 1 insertions, 1 deletions
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);