* always send a fetch command. */
rend_client_fetch_v2_desc(rend_query, hsdirs);
-done:
+ done:
SMARTLIST_FOREACH(args, char *, cp, tor_free(cp));
smartlist_free(args);
/* Contains data pointer that we don't own thus no cleanup. */
smartlist_free(hsdirs);
rend_data_free(rend_query);
-exit:
+ exit:
return 0;
}
return longname;
}
-
/** Return either the onion address if the given pointer is a non empty
* string else the unknown string. */
static const char *
/* All checks are good so return the given onion address. */
str_ret = onion_address;
-end:
+ end:
return str_ret;
}
-
/** send HS_DESC requested event.
*
* <b>rend_query</b> is used to fetch requested onion address and auth type.
/* Everything went well. */
ret = 0;
-end:
+ end:
return ret;
}
"we already tried them all unsuccessfully.");
ret = 0;
-end:
+ end:
memwipe(descriptor_id, 0, sizeof(descriptor_id));
return ret;
}
goto error;
}
-error:
+ error:
return ret;
}