diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-09 17:23:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-09 17:23:30 +0000 |
commit | 9d55674c58b63487c67b8539492b4315b561a7f1 (patch) | |
tree | 66cbf469d9b795879d43f5e9c2b7866c2e3e53cc /src/identity/test_identity_defaults.c | |
parent | 5f05e39051f6339e6908392f0ef212b42a5682fb (diff) | |
download | gnunet-9d55674c58b63487c67b8539492b4315b561a7f1.tar.gz gnunet-9d55674c58b63487c67b8539492b4315b561a7f1.zip |
-fix potential leak and awkward test behavior causing it
Diffstat (limited to 'src/identity/test_identity_defaults.c')
-rw-r--r-- | src/identity/test_identity_defaults.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/identity/test_identity_defaults.c b/src/identity/test_identity_defaults.c index f525bb6c7..980f4abd2 100644 --- a/src/identity/test_identity_defaults.c +++ b/src/identity/test_identity_defaults.c | |||
@@ -213,6 +213,8 @@ notification_cb (void *cls, | |||
213 | { | 213 | { |
214 | if (NULL == ego) | 214 | if (NULL == ego) |
215 | return; /* skip first call */ | 215 | return; /* skip first call */ |
216 | if (NULL == identifier) | ||
217 | return; /* deletion / shutdown */ | ||
216 | op = GNUNET_IDENTITY_set (h, | 218 | op = GNUNET_IDENTITY_set (h, |
217 | "test-service", | 219 | "test-service", |
218 | ego, | 220 | ego, |