diff options
author | green <green@FreeBSD.org> | 1999-10-09 23:24:59 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-10-09 23:24:59 +0000 |
commit | eb94f20ec0ff1ef6c705fd74ad46291aa9380f08 (patch) | |
tree | b83f2f72223f1f8b225f043054003197e120c02a /sys/netatm | |
parent | 5304b36dd85a00a8493eac6fc6e97ae74535980e (diff) | |
download | FreeBSD-src-eb94f20ec0ff1ef6c705fd74ad46291aa9380f08.zip FreeBSD-src-eb94f20ec0ff1ef6c705fd74ad46291aa9380f08.tar.gz |
Modify to work with the new sbreserve().
Diffstat (limited to 'sys/netatm')
-rw-r--r-- | sys/netatm/atm_aal5.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netatm/atm_aal5.c b/sys/netatm/atm_aal5.c index 2cf70c9..3538f84 100644 --- a/sys/netatm/atm_aal5.c +++ b/sys/netatm/atm_aal5.c @@ -370,7 +370,11 @@ atm_aal5_connect(so, addr, p) size = atp->atp_attr.aal.v.aal5.forward_max_SDU_size; if (size != T_ATM_ABSENT) - (void) sbreserve(&so->so_snd, size); + if (!sbreserve(&so->so_snd, size, so, p)) { + err = ENOBUFS; + ATM_OUTRO(); + } + } /* |