Fix #16214 - segfault in =+ command

This commit is contained in:
Aung Khant Ko 2020-03-25 05:21:25 -04:00 committed by GitHub
parent 3959e8eabb
commit 9374e9a1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -757,6 +757,7 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
} else {
*ptr++ = '\0';
port = ptr;
r_str_trim (port);
}
} else {
port = NULL;
@ -775,7 +776,6 @@ R_API void r_core_rtr_add(RCore *core, const char *_input) {
}
}
r_str_trim (port);
if (r_sandbox_enable (0)) {
eprintf ("sandbox: connect disabled\n");
return;