Commit 398fc2c
committed
scheduler: Fix possible use_after_free in cupsdReadClient()
If cupsdSendHeader() fails, we free the connection and return -1, but in
that case we try to free the connection again in cupsdReadClient().1 parent f5813db commit 398fc2c
2 files changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2752 | 2752 | | |
2753 | 2753 | | |
2754 | 2754 | | |
2755 | | - | |
2756 | | - | |
2757 | 2755 | | |
2758 | | - | |
2759 | 2756 | | |
2760 | 2757 | | |
2761 | 2758 | | |
| |||
0 commit comments