diff options
Diffstat (limited to 'src/microhttpd/digestauth.c')
-rw-r--r-- | src/microhttpd/digestauth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index d6c26114..2c0e9526 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -317,19 +317,19 @@ check_nonce_nc (struct MHD_Connection *connection, | |||
317 | * then only increase the nonce counter by one. | 317 | * then only increase the nonce counter by one. |
318 | */ | 318 | */ |
319 | 319 | ||
320 | pthread_mutex_lock (&connection->daemon->nnc_lock); | 320 | (void) pthread_mutex_lock (&connection->daemon->nnc_lock); |
321 | if (0 == nc) | 321 | if (0 == nc) |
322 | { | 322 | { |
323 | strcpy(connection->daemon->nnc[off].nonce, | 323 | strcpy(connection->daemon->nnc[off].nonce, |
324 | nonce); | 324 | nonce); |
325 | connection->daemon->nnc[off].nc = 0; | 325 | connection->daemon->nnc[off].nc = 0; |
326 | pthread_mutex_unlock (&connection->daemon->nnc_lock); | 326 | (void) pthread_mutex_unlock (&connection->daemon->nnc_lock); |
327 | return MHD_YES; | 327 | return MHD_YES; |
328 | } | 328 | } |
329 | if ( (nc <= connection->daemon->nnc[off].nc) || | 329 | if ( (nc <= connection->daemon->nnc[off].nc) || |
330 | (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) ) | 330 | (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) ) |
331 | { | 331 | { |
332 | pthread_mutex_unlock (&connection->daemon->nnc_lock); | 332 | (void) pthread_mutex_unlock (&connection->daemon->nnc_lock); |
333 | #if HAVE_MESSAGES | 333 | #if HAVE_MESSAGES |
334 | MHD_DLOG (connection->daemon, | 334 | MHD_DLOG (connection->daemon, |
335 | "Stale nonce received. If this happens a lot, you should probably increase the size of the nonce array.\n"); | 335 | "Stale nonce received. If this happens a lot, you should probably increase the size of the nonce array.\n"); |
@@ -337,7 +337,7 @@ check_nonce_nc (struct MHD_Connection *connection, | |||
337 | return MHD_NO; | 337 | return MHD_NO; |
338 | } | 338 | } |
339 | connection->daemon->nnc[off].nc = nc; | 339 | connection->daemon->nnc[off].nc = nc; |
340 | pthread_mutex_unlock (&connection->daemon->nnc_lock); | 340 | (void) pthread_mutex_unlock (&connection->daemon->nnc_lock); |
341 | return MHD_YES; | 341 | return MHD_YES; |
342 | } | 342 | } |
343 | 343 | ||