diff options
author | 2025-10-02 20:54:37 +0200 | |
---|---|---|
committer | 2025-10-02 20:54:55 +0200 | |
commit | fb46a9db2d8d11dc98d2bf6d61754e4c8f185460 (patch) | |
tree | b56775d5f1e4e7fb870ccce21d17790eb81c1d7b | |
parent | d88d440f47fe27eb839c7f4c580fc743589a9313 (diff) | |
download | idevicerestore-fb46a9db2d8d11dc98d2bf6d61754e4c8f185460.tar.gz idevicerestore-fb46a9db2d8d11dc98d2bf6d61754e4c8f185460.tar.bz2 |
Do not try to print SEP nonce if none was retrieved
-rw-r--r-- | src/idevicerestore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c index e3774bb..809f935 100644 --- a/src/idevicerestore.c +++ b/src/idevicerestore.c @@ -1247,8 +1247,10 @@ int idevicerestore_start(struct idevicerestore_client_t* client) plist_t p_sep_nonce = plist_dict_get_item(ap_params, "SepNonce"); uint64_t sep_nonce_size = 0; const char* sep_nonce = plist_get_data_ptr(p_sep_nonce, &sep_nonce_size); - logger(LL_INFO, "Getting SepNonce in normal mode... "); - logger_dump_hex(LL_INFO, sep_nonce, sep_nonce_size); + if (sep_nonce) { + logger(LL_INFO, "Getting SepNonce in normal mode... "); + logger_dump_hex(LL_INFO, sep_nonce, sep_nonce_size); + } plist_free(ap_params); } plist_t req_nonce_slot = plist_access_path(build_identity, 2, "Info", "RequiresNonceSlot"); |