diff options
author | Martin Szulecki | 2014-10-02 01:07:48 +0200 |
---|---|---|
committer | Martin Szulecki | 2014-10-02 01:07:48 +0200 |
commit | 743cfa3e21313132517b3f8d730530eb34ed8723 (patch) | |
tree | f63f0f31d675faef2345b04ebf75f0a37c230b5f | |
parent | cdc67e5a997d08158bcb24d51ca991838106bc7e (diff) | |
download | libirecovery-743cfa3e21313132517b3f8d730530eb34ed8723.tar.gz libirecovery-743cfa3e21313132517b3f8d730530eb34ed8723.tar.bz2 |
Only output debug information in irecv_copy_nonce_with_tag() on error
-rw-r--r-- | src/libirecovery.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c index 99143cb..f66eff7 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -306,13 +306,12 @@ static void irecv_copy_nonce_with_tag(irecv_client_t client, const char* tag, un *nonce_size = 0; len = irecv_get_string_descriptor_ascii(client, 1, (unsigned char*) buf, 255); - debug("%s: got length: %d\n", __func__, len); if (len < 0) { + debug("%s: got length: %d\n", __func__, len); return; } buf[len] = 0; - debug("%s: buf='%s' tag='%s'\n", __func__, buf, tag); int taglen = strlen(tag); int nlen = 0; |