]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ngatm: Handle errors from uni_msg_extend()
authorMark Johnston <markj@FreeBSD.org>
Sun, 6 Jun 2021 20:42:16 +0000 (16:42 -0400)
committerMark Johnston <markj@FreeBSD.org>
Mon, 14 Jun 2021 20:25:14 +0000 (16:25 -0400)
commit09e47586d72f4940eea1e70df706dbc165ad0415
treee5156843d9fc7297ecf85b7d906adec41ea6c8d5
parente58cb5c01de989c8f88af3732a5fe404b0660a9c
ngatm: Handle errors from uni_msg_extend()

uni_msg_extend() may fail due to a memory allocation failure.  In this
case, though, the message is freed, so callers shouldn't touch it.

PR: 255861
Reviewed by: harti
Sponsored by: The FreeBSD Foundation

(cherry picked from commit e755e2776ddff729ae4102f3273473aa33b00077)
sys/contrib/ngatm/netnatm/msg/uni_ie.c