[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-exchange] branch master updated: Fix cherry-pick tes
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-exchange] branch master updated: Fix cherry-pick test case. |
Date: |
Tue, 25 Sep 2018 19:14:43 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository exchange.
The following commit(s) were added to refs/heads/master by this push:
new a5dde6ea Fix cherry-pick test case.
a5dde6ea is described below
commit a5dde6ea469c81cd92efda20a1fce9ccfa4a339b
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Sep 25 19:08:11 2018 +0200
Fix cherry-pick test case.
---
src/exchange/taler-exchange-httpd_keystate.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/src/exchange/taler-exchange-httpd_keystate.c
b/src/exchange/taler-exchange-httpd_keystate.c
index ce2eafa7..5af391ac 100644
--- a/src/exchange/taler-exchange-httpd_keystate.c
+++ b/src/exchange/taler-exchange-httpd_keystate.c
@@ -2091,6 +2091,20 @@ TEH_KS_handler_keys (struct TEH_RequestHandler *rh,
? krd->response_compressed
: krd->response_uncompressed);
TEH_KS_release (key_state);
+
+ /**
+ * Not the best style, but needed since the logic has this
+ * dual behaviour: some functions touch directly the global
+ * variable, some others want the key state passed in the
+ * arguments.
+ *
+ * NOTE, this NULL-ification is needed because otherwise
+ * the internal key state object gets left with refcnt == 0
+ * and a non-NULL global pointer to it.
+ */
+ if (internal_key_state == key_state)
+ internal_key_state = NULL;
+
return ret;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-exchange] branch master updated: Fix cherry-pick test case.,
gnunet <=