summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-02 01:07:48 +0200
committerGravatar Martin Szulecki2014-10-02 01:07:48 +0200
commit743cfa3e21313132517b3f8d730530eb34ed8723 (patch)
treef63f0f31d675faef2345b04ebf75f0a37c230b5f /src
parentcdc67e5a997d08158bcb24d51ca991838106bc7e (diff)
downloadlibirecovery-743cfa3e21313132517b3f8d730530eb34ed8723.tar.gz
libirecovery-743cfa3e21313132517b3f8d730530eb34ed8723.tar.bz2
Only output debug information in irecv_copy_nonce_with_tag() on error
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c3
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;