View Issue Details

IDProjectCategoryView StatusLast Update
0009630Talermerchant backendpublic2025-03-19 01:54
Reporterfefe Assigned ToChristian Grothoff  
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Versiongit (master) 
Target Version1.0Fixed in Version1.0 
Summary0009630: confusing if statement in generate_success_response
DescriptionIn taler-merchant-httpd_post-orders-ID-abort.c:

   380 if (! rdi->found_deposit)

   386 else if (MHD_HTTP_OK != rdi->http_status)

   404 else if (rdi->found_deposit)

The condition in line 404 will always be true, but it makes it look like it might not.
That confuses human readers and also the clang-tidy static analyzer which warns that detail may be used uninitialized if this is not taken.
TagsNo tags attached.

Activities

Christian Grothoff

2025-03-19 01:53

manager   ~0024239

Fixed in 701840852505bebf4af0e0debe607fe41db62d29

Christian Grothoff

2025-03-19 01:54

manager   ~0024240

Fix committed to master branch.

Related Changesets

merchant: master 70184085

2025-03-19 02:52

Christian Grothoff


Details Diff
fix 0009630 Affected Issues
0009630
mod - src/backend/taler-merchant-httpd_post-orders-ID-abort.c Diff File

Issue History

Date Modified Username Field Change
2025-03-18 13:31 fefe New Issue
2025-03-18 13:31 fefe Status new => assigned
2025-03-18 13:31 fefe Assigned To => Christian Grothoff
2025-03-19 01:53 Christian Grothoff Note Added: 0024239
2025-03-19 01:53 Christian Grothoff Severity minor => trivial
2025-03-19 01:53 Christian Grothoff Status assigned => resolved
2025-03-19 01:53 Christian Grothoff Product Version => git (master)
2025-03-19 01:53 Christian Grothoff Fixed in Version => 1.0
2025-03-19 01:53 Christian Grothoff Target Version => 1.0
2025-03-19 01:54 Christian Grothoff Changeset attached => merchant master 70184085
2025-03-19 01:54 Christian Grothoff Note Added: 0024240
2025-03-19 01:54 Christian Grothoff Resolution open => fixed
2025-03-22 14:09 Christian Grothoff Category mechant backend => merchant backend