View Issue Details

IDProjectCategoryView StatusLast Update
0009630Talermerchant backendpublic2025-05-10 02:11
Reporterfefe Assigned ToChristian Grothoff Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytrivialReproducibilityhave not tried
Status closedResolutionfixed 
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.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2025-03-19 00:53

manager   ~0024239

Fixed in 701840852505bebf4af0e0debe607fe41db62d29

Christian Grothoff

2025-03-19 00:54

manager   ~0024240

Fix committed to master branch.

Issue History

Date ModifiedUsernameFieldChange
2025-03-18 12:31fefeNew Issue
2025-03-18 12:31fefeStatusnew => assigned
2025-03-18 12:31fefeAssigned To => Christian Grothoff
2025-03-19 00:53Christian GrothoffNote Added: 0024239
2025-03-19 00:53Christian GrothoffSeverityminor => trivial
2025-03-19 00:53Christian GrothoffStatusassigned => informing
2025-03-19 00:53Christian GrothoffProduct Version => git (master)
2025-03-19 00:53Christian GrothoffFixed in Version => 1.0
2025-03-19 00:53Christian GrothoffTarget Version => 1.0
2025-03-19 00:54Christian Grothoff
2025-03-19 00:54Christian GrothoffNote Added: 0024240
2025-03-19 00:54Christian GrothoffResolutionopen => fixed
2025-03-22 13:09Christian GrothoffCategorymechant backend => merchant backend
2025-05-10 02:11Christian GrothoffStatusinforming => closed