Commit e7bb6de
committed
ssh: keep a successful rekey trigger out of ssh->error
- wolfSSH_TriggerKeyExchange() writes ssh->error only when
SendKexInit() fails. It runs from HighwaterCheck() inside
wolfSSH_SendPacket(), so writing WS_SUCCESS there erased what
the pass the mark fired on had already reported.
- test_TriggerKeyExchangeKeepsError() seeds ssh->error and checks
a rekey that starts cleanly leaves it alone.1 parent 238168a commit e7bb6de
2 files changed
Lines changed: 52 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1262 | 1262 | | |
1263 | 1263 | | |
1264 | 1264 | | |
1265 | | - | |
1266 | | - | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
1267 | 1270 | | |
1268 | 1271 | | |
1269 | 1272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7174 | 7174 | | |
7175 | 7175 | | |
7176 | 7176 | | |
| 7177 | + | |
| 7178 | + | |
| 7179 | + | |
| 7180 | + | |
| 7181 | + | |
| 7182 | + | |
| 7183 | + | |
| 7184 | + | |
| 7185 | + | |
| 7186 | + | |
| 7187 | + | |
| 7188 | + | |
| 7189 | + | |
| 7190 | + | |
| 7191 | + | |
| 7192 | + | |
| 7193 | + | |
| 7194 | + | |
| 7195 | + | |
| 7196 | + | |
| 7197 | + | |
| 7198 | + | |
| 7199 | + | |
| 7200 | + | |
| 7201 | + | |
| 7202 | + | |
| 7203 | + | |
| 7204 | + | |
| 7205 | + | |
| 7206 | + | |
| 7207 | + | |
| 7208 | + | |
| 7209 | + | |
| 7210 | + | |
| 7211 | + | |
| 7212 | + | |
| 7213 | + | |
| 7214 | + | |
| 7215 | + | |
| 7216 | + | |
7177 | 7217 | | |
7178 | 7218 | | |
7179 | 7219 | | |
| |||
20028 | 20068 | | |
20029 | 20069 | | |
20030 | 20070 | | |
| 20071 | + | |
| 20072 | + | |
| 20073 | + | |
| 20074 | + | |
| 20075 | + | |
| 20076 | + | |
| 20077 | + | |
20031 | 20078 | | |
20032 | 20079 | | |
20033 | 20080 | | |
| |||
0 commit comments