diff options
author | Jason Wang <jasowang@redhat.com> | 2010-10-25 13:39:59 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-10-27 18:54:02 +0200 |
commit | f7c31d6381f2cbac03e82fc23133f6863606edd8 (patch) | |
tree | ac33e75ca51852177093bd88b4d84727cf83f1a9 /Makefile | |
parent | 258dc7c96bb4b7ca71d5bee811e73933310e168c (diff) |
net: properly handle illegal fd/vhostfd from command line
When hanlding fd/vhostfd form command line through net_handle_fd_param(),
we need to check mon and return value of strtol() otherwise we could
get segmentation fault or invalid fd when user type an illegal fd/vhostfd.
This patch is based on the suggestions from
Luiz Capitulino <lcapitulino@redhat.com>.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions