mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
don't crash now that LongLivedPorts can be null
svn:r4923
This commit is contained in:
parent
8f37357193
commit
780261aa2e
@ -149,6 +149,7 @@ int smartlist_isin(const smartlist_t *sl, void *element) {
|
||||
|
||||
int smartlist_string_isin(const smartlist_t *sl, const char *element) {
|
||||
int i;
|
||||
if (!sl) return 0;
|
||||
for (i=0; i < sl->num_used; i++)
|
||||
if (strcmp((const char*)sl->list[i],element)==0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user