diff options
| author | 2014-10-02 01:07:48 +0200 | |
|---|---|---|
| committer | 2014-10-02 01:07:48 +0200 | |
| commit | 743cfa3e21313132517b3f8d730530eb34ed8723 (patch) | |
| tree | f63f0f31d675faef2345b04ebf75f0a37c230b5f /src | |
| parent | cdc67e5a997d08158bcb24d51ca991838106bc7e (diff) | |
| download | libirecovery-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.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 | |||
| 306 | *nonce_size = 0; | 306 | *nonce_size = 0; |
| 307 | 307 | ||
| 308 | len = irecv_get_string_descriptor_ascii(client, 1, (unsigned char*) buf, 255); | 308 | len = irecv_get_string_descriptor_ascii(client, 1, (unsigned char*) buf, 255); |
| 309 | debug("%s: got length: %d\n", __func__, len); | ||
| 310 | if (len < 0) { | 309 | if (len < 0) { |
| 310 | debug("%s: got length: %d\n", __func__, len); | ||
| 311 | return; | 311 | return; |
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | buf[len] = 0; | 314 | buf[len] = 0; |
| 315 | debug("%s: buf='%s' tag='%s'\n", __func__, buf, tag); | ||
| 316 | 315 | ||
| 317 | int taglen = strlen(tag); | 316 | int taglen = strlen(tag); |
| 318 | int nlen = 0; | 317 | int nlen = 0; |
