hi!
Please review:
https://code.illumos.org/c/illumos-gate/+/3652
bbuf is out of scope when dereferenced via buf.
thanks,
toomas