diff options
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -733,12 +733,7 @@ int net_handle_fd_param(Monitor *mon, const char *param) return -1; } } else { - char *endptr = NULL; - - fd = strtol(param, &endptr, 10); - if (*endptr || (fd == 0 && param == endptr)) { - return -1; - } + fd = qemu_parse_fd(param); } return fd; |