diff options
author | Lai Peter Jun Ann <jun.ann.lai@intel.com> | 2022-11-21 10:29:09 +0800 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2022-11-23 08:54:44 -0800 |
commit | 455fa8295298a68a2dedabf9dd4c1dbf847b128b (patch) | |
tree | 3fd11c87be5bed04f5833d2c10e204e105bc2299 /tc | |
parent | e0ecee3a33af57e01fe5d15f1a436216412f2d96 (diff) | |
download | iproute2-455fa8295298a68a2dedabf9dd4c1dbf847b128b.tar.gz |
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>
Diffstat (limited to 'tc')
-rw-r--r-- | tc/tc_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/tc_util.c b/tc/tc_util.c index 334334db..8cd3c035 100644 --- a/tc/tc_util.c +++ b/tc/tc_util.c @@ -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; |