mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-15 05:55:11 +08:00
tc_util: Change datatype for maj to avoid overflow issue
The return value by stroul() is unsigned long int. Hence the datatype for maj should defined as unsigned long to avoid overflow issue. Signed-off-by: Muhammad Husaini Zulkifli <muhammad.husaini.zulkifli@intel.com> Signed-off-by: Lai Peter Jun Ann <jun.ann.lai@intel.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
e0ecee3a33
commit
455fa82952
@ -74,7 +74,7 @@ const char *get_tc_lib(void)
|
||||
|
||||
int get_qdisc_handle(__u32 *h, const char *str)
|
||||
{
|
||||
__u32 maj;
|
||||
unsigned long maj;
|
||||
char *p;
|
||||
|
||||
maj = TC_H_UNSPEC;
|
||||
|
Loading…
Reference in New Issue
Block a user