mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 15:10:48 +01:00
Try to restore a proper fix for bug27740 in 0.3.5.
(I messed up the merge in 289a7dbac32a981897e12a3c250f0b6c67eec809.)
This commit is contained in:
parent
709cd447f0
commit
632e040659
1 changed files with 1 additions and 6 deletions
|
@ -65,12 +65,7 @@ pub extern "C" fn protover_all_supported(
|
||||||
if missing_out.is_null() {
|
if missing_out.is_null() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
let c_unsupported: CString = match CString::new(unsupported.to_string()) {
|
let ptr = allocate_and_copy_string(&unsupported.to_string());
|
||||||
Ok(n) => n,
|
|
||||||
Err(_) => return 1,
|
|
||||||
};
|
|
||||||
|
|
||||||
let ptr = c_unsupported.into_raw();
|
|
||||||
unsafe { *missing_out = ptr };
|
unsafe { *missing_out = ptr };
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue