git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vserver 1.9.5.x5
[linux-2.6.git]
/
net
/
ipv4
/
ip_options.c
diff --git
a/net/ipv4/ip_options.c
b/net/ipv4/ip_options.c
index
461bbd0
..
6d89f3f
100644
(file)
--- a/
net/ipv4/ip_options.c
+++ b/
net/ipv4/ip_options.c
@@
-515,6
+515,8
@@
int ip_options_get(struct ip_options **optp, unsigned char *data, int optlen, in
kfree(opt);
return -EINVAL;
}
+ if (*optp)
+ kfree(*optp);
*optp = opt;
return 0;
}