Updated to hostap_2_6
[mech_eap.git] / libeap / src / crypto / dh_group5.c
index ccdbfc8..425c848 100644 (file)
@@ -15,6 +15,7 @@
 
 void * dh5_init(struct wpabuf **priv, struct wpabuf **publ)
 {
+       wpabuf_free(*publ);
        *publ = dh_init(dh_groups_get(5), priv);
        if (*publ == NULL)
                return NULL;