Do not allocate return array if there are no return values
authorJennifer Richards <jennifer@painless-security.com>
Wed, 2 May 2018 22:11:29 +0000 (18:11 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Wed, 2 May 2018 22:13:03 +0000 (18:13 -0400)
commitd1130807819f670c45d73e1e062c5cff0138bfdf
treefcfb20ebc6a49b9ddd1d74e785f81c621125f557
parent311876a304af566cefd110f577923e5b198cd5bd
Do not allocate return array if there are no return values

Calling talloc_array() with length 0 still allocates memory to track
the zero-length chunk. Return NULL because that is what we mean.
trp/trp_rtable.c