diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-07-01 19:38:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-07-01 19:38:06 +0200 |
commit | d409018c1da52d051bf2e95cd97a73e72cb5accd (patch) | |
tree | ae9865b0fe7c57f6553c8a8afc3706142e9595ef /src/identity | |
parent | dd68d665e140970c7d9dfd899fbdd4fefacb54a7 (diff) | |
download | gnunet-d409018c1da52d051bf2e95cd97a73e72cb5accd.tar.gz gnunet-d409018c1da52d051bf2e95cd97a73e72cb5accd.zip |
move gnunet-timeout to src/util/, fix issues related to #5375
Diffstat (limited to 'src/identity')
-rw-r--r-- | src/identity/identity_api_lookup.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/identity/identity_api_lookup.c b/src/identity/identity_api_lookup.c index 593a5dbb0..25aec8ede 100644 --- a/src/identity/identity_api_lookup.c +++ b/src/identity/identity_api_lookup.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | */ | 17 | */ |
@@ -131,6 +131,12 @@ GNUNET_IDENTITY_ego_lookup (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
131 | el->identity = GNUNET_IDENTITY_connect (cfg, | 131 | el->identity = GNUNET_IDENTITY_connect (cfg, |
132 | &identity_cb, | 132 | &identity_cb, |
133 | el); | 133 | el); |
134 | if (NULL == el->identity) | ||
135 | { | ||
136 | GNUNET_free (el->name); | ||
137 | GNUNET_free (el); | ||
138 | return NULL; | ||
139 | } | ||
134 | return el; | 140 | return el; |
135 | } | 141 | } |
136 | 142 | ||