Skip to content

Commit 06dac58

Browse files
ashishsangwan2ashish.sangwan
authored and
ashish.sangwan
committed
Fix mem_leak in xdr_rpc_gss_buf
We need to free gss_buffer
1 parent 925ee1e commit 06dac58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/authgss_prot.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ xdr_rpc_gss_buf(XDR *xdrs, gss_buffer_t buf, u_int maxsize)
101101
case XDR_DECODE:
102102
return (xdr_rpc_gss_decode(xdrs, buf));
103103
case XDR_FREE:
104+
mem_free(buf->value, buf->length);
104105
return (TRUE);
105106
};
106107
return (FALSE);

0 commit comments

Comments
 (0)