Repository navigation
Commit a48b284
committed
audit: fix a net reference leak in audit_send_reply()
If audit_send_reply() fails when trying to create a new thread to
send the reply it also fails to cleanup properly, leaking a reference
to a net structure. This patch fixes the error path and makes a
handful of other cleanups that came up while fixing the code.
Reported-by: teroincn@gmail.com
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>1 parent 8f3d9f3 commit a48b284
1 file changed
Lines changed: 29 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
927 | 939 | | |
928 | 940 | | |
929 | 941 | | |
930 | | - | |
931 | 942 | | |
932 | 943 | | |
933 | 944 | | |
934 | 945 | | |
935 | 946 | | |
936 | 947 | | |
937 | | - | |
938 | | - | |
939 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
940 | 951 | | |
941 | 952 | | |
942 | 953 | | |
| |||
950 | 961 | | |
951 | 962 | | |
952 | 963 | | |
953 | | - | |
954 | | - | |
| 964 | + | |
955 | 965 | | |
956 | 966 | | |
957 | 967 | | |
958 | 968 | | |
959 | | - | |
960 | | - | |
961 | 969 | | |
962 | | - | |
963 | | - | |
| 970 | + | |
964 | 971 | | |
| 972 | + | |
965 | 973 | | |
966 | 974 | | |
967 | 975 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
973 | 980 | | |
974 | | - | |
975 | 981 | | |
976 | 982 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | | - | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
982 | 990 | | |
983 | 991 | | |
984 | 992 | | |
| |||
0 commit comments