forked from nrfconnect/sdk-nrf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib: modem_key_mgmt: fix duplicate deletion of last cred type
Because of the ok\r\n in response from modem, the while loop iterates an extra round with scanf not matching any arguments. As the sectag matched the last credential is attempted deleted again and the function return an error. This commit fixes the issue by only deleting the credential in the modem if we match the sectag and credential type in scanf. Signed-off-by: Eivind Jølsgard <[email protected]>
- Loading branch information
1 parent
6e0cb3a
commit 1803a80
Showing
2 changed files
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters