Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c421e08 authored by Matthew Xie's avatar Matthew Xie Committed by Gerrit Code Review
Browse files

Merge "Don't leak process-private data on Change Local Name command."

parents fa1df016 31d94c53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1364,6 +1364,7 @@ BOOLEAN btsnd_hcic_change_name (BD_NAME name)
        return (FALSE);

    pp = (UINT8 *)(p + 1);
    memset(pp, 0, HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME);

    p->len    = HCIC_PREAMBLE_SIZE + HCIC_PARAM_SIZE_CHANGE_NAME;
    p->offset = 0;