aboutsummaryrefslogtreecommitdiffstats
path: root/lib/assoc_array.c
diff options
context:
space:
mode:
authorRoberto Sassu <[email protected]>2013-11-27 13:40:41 +0000
committerJames Morris <[email protected]>2013-11-30 02:09:53 +0000
commitaf91706d5ddecb4a9858cca9e90d463037cfd498 (patch)
tree6deb94f92beb6a51eadad053ded7da136847062f /lib/assoc_array.c
parentLinux 3.13-rc2 (diff)
downloadkernel-af91706d5ddecb4a9858cca9e90d463037cfd498.tar.gz
kernel-af91706d5ddecb4a9858cca9e90d463037cfd498.zip
ima: store address of template_fmt_copy in a pointer before calling strsep
This patch stores the address of the 'template_fmt_copy' variable in a new variable, called 'template_fmt_ptr', so that the latter is passed as an argument of strsep() instead of the former. This modification is needed in order to correctly free the memory area referenced by 'template_fmt_copy' (strsep() modifies the pointer of the passed string). Signed-off-by: Roberto Sassu <[email protected]> Reported-by: Sebastian Ott <[email protected]> Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions