mirror of git://git.sysmocom.de/ofono
atmodem: Fix at_pin_send_puk userdata use
It seems that the function at_pin_send_puk should have been changed
along with at_pin_send, because it's also refering to the
at_pin_send_cb callback
See this commit : ba9f126716
This commit is contained in:
parent
b42bc11d85
commit
46896014ee
|
@ -1359,12 +1359,12 @@ static void at_pin_send_puk(struct ofono_sim *sim, const char *puk,
|
||||||
char buf[64];
|
char buf[64];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
cbd->user = sd;
|
cbd->user = sim;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "AT+CPIN=\"%s\",\"%s\"", puk, passwd);
|
snprintf(buf, sizeof(buf), "AT+CPIN=\"%s\",\"%s\"", puk, passwd);
|
||||||
|
|
||||||
ret = g_at_chat_send(sd->chat, buf, none_prefix,
|
ret = g_at_chat_send(sd->chat, buf, none_prefix,
|
||||||
at_pin_send_cb, cbd, NULL);
|
at_pin_send_cb, cbd, g_free);
|
||||||
|
|
||||||
memset(buf, 0, sizeof(buf));
|
memset(buf, 0, sizeof(buf));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue