diff options
author | jospaeth <spaethj@in.tum.de> | 2020-09-02 22:30:20 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-09-02 22:30:20 +0200 |
commit | 649777acbf64d2c80c5af67408b2c0f7a959c377 (patch) | |
tree | f31e29d9260e3031916859a500c0e5404fa0f92b /src/escrow/escrow_api.c | |
parent | 199bf34cd82d9998baade7197774bf661e8e2cfd (diff) | |
download | gnunet-649777acbf64d2c80c5af67408b2c0f7a959c377.tar.gz gnunet-649777acbf64d2c80c5af67408b2c0f7a959c377.zip |
fix error handling in ESCROW_get_escrow_status()
Diffstat (limited to 'src/escrow/escrow_api.c')
-rw-r--r-- | src/escrow/escrow_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c index 3e3496ff1..10faed90b 100644 --- a/src/escrow/escrow_api.c +++ b/src/escrow/escrow_api.c | |||
@@ -559,6 +559,8 @@ GNUNET_ESCROW_anchor_data_to_string (const struct GNUNET_ESCROW_Anchor *anchor) | |||
559 | enum GNUNET_ESCROW_Key_Escrow_Method | 559 | enum GNUNET_ESCROW_Key_Escrow_Method |
560 | GNUNET_ESCROW_method_string_to_number (const char *methodString) | 560 | GNUNET_ESCROW_method_string_to_number (const char *methodString) |
561 | { | 561 | { |
562 | if (NULL == methodString) | ||
563 | return GNUNET_ESCROW_KEY_NONE; | ||
562 | if (!strcmp (plaintext_string, methodString)) | 564 | if (!strcmp (plaintext_string, methodString)) |
563 | return GNUNET_ESCROW_KEY_PLAINTEXT; | 565 | return GNUNET_ESCROW_KEY_PLAINTEXT; |
564 | else if (!strcmp (gns_string, methodString)) | 566 | else if (!strcmp (gns_string, methodString)) |