summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c678b44)
raw | patch | inline | side by side (parent: c678b44)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:30:57 +0000 (11:30 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 09:30:57 +0000 (11:30 +0200) |
src/openvpn.c | patch | blob | history |
diff --git a/src/openvpn.c b/src/openvpn.c
index f10b1746c18b3a7d39bb145dac8caa76aacd5846..9490ac8b6086a2c68efbadca4814b0a688b64f9c 100644 (file)
--- a/src/openvpn.c
+++ b/src/openvpn.c
temp->version = status_version;
temp->name = status_name;
- vpn_list = realloc (vpn_list, (vpn_num + 1) * sizeof (vpn_status_t *));
+ vpn_list = realloc (vpn_list, (vpn_num + 1) * sizeof (*vpn_list));
if (vpn_list == NULL)
{
char errbuf[1024];