diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-25 13:36:55 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-25 13:36:55 -0400 |
commit | 34539b96d0f01d0483bd756bde5da4b43ac82a63 (patch) | |
tree | aaf22d71855e03b8980f1aea9dc7281470039240 /src | |
parent | fix (diff) | |
download | firejail-34539b96d0f01d0483bd756bde5da4b43ac82a63.tar.gz firejail-34539b96d0f01d0483bd756bde5da4b43ac82a63.tar.zst firejail-34539b96d0f01d0483bd756bde5da4b43ac82a63.zip |
testing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libnetlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libnetlink.c b/src/lib/libnetlink.c index 07457eefe..836cf417d 100644 --- a/src/lib/libnetlink.c +++ b/src/lib/libnetlink.c | |||
@@ -723,7 +723,7 @@ int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data) | |||
723 | int len = RTA_LENGTH(4); | 723 | int len = RTA_LENGTH(4); |
724 | struct rtattr *subrta; | 724 | struct rtattr *subrta; |
725 | 725 | ||
726 | if (RTA_ALIGN(rta->rta_len) + len > maxlen) { | 726 | if ((int) (RTA_ALIGN(rta->rta_len) + len) > maxlen) { |
727 | fprintf(stderr,"rta_addattr32: Error! max allowed bound %d exceeded\n",maxlen); | 727 | fprintf(stderr,"rta_addattr32: Error! max allowed bound %d exceeded\n",maxlen); |
728 | return -1; | 728 | return -1; |
729 | } | 729 | } |
@@ -741,7 +741,7 @@ int rta_addattr_l(struct rtattr *rta, int maxlen, int type, | |||
741 | struct rtattr *subrta; | 741 | struct rtattr *subrta; |
742 | int len = RTA_LENGTH(alen); | 742 | int len = RTA_LENGTH(alen); |
743 | 743 | ||
744 | if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) { | 744 | if ((int) (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len)) > maxlen) { |
745 | fprintf(stderr,"rta_addattr_l: Error! max allowed bound %d exceeded\n",maxlen); | 745 | fprintf(stderr,"rta_addattr_l: Error! max allowed bound %d exceeded\n",maxlen); |
746 | return -1; | 746 | return -1; |
747 | } | 747 | } |