Assimilate very similar input and output code paths
(no real functional change). MFC after: 5 days
This commit is contained in:
parent
d8ce467304
commit
10229cd109
@ -249,10 +249,8 @@ ipcomp_input_cb(struct cryptop *crp)
|
||||
|
||||
if (crp->crp_etype == EAGAIN) {
|
||||
KEY_FREESAV(&sav);
|
||||
error = crypto_dispatch(crp);
|
||||
return error;
|
||||
return crypto_dispatch(crp);
|
||||
}
|
||||
|
||||
V_ipcompstat.ipcomps_noxform++;
|
||||
DPRINTF(("%s: crypto error %d\n", __func__, crp->crp_etype));
|
||||
error = crp->crp_etype;
|
||||
@ -484,7 +482,7 @@ ipcomp_output_cb(struct cryptop *crp)
|
||||
|
||||
/* Check for crypto errors */
|
||||
if (crp->crp_etype) {
|
||||
/* Reset session ID */
|
||||
/* Reset the session ID */
|
||||
if (sav->tdb_cryptoid != 0)
|
||||
sav->tdb_cryptoid = crp->crp_sid;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user