Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / src / crypto / sha1-tprf.c
index 4a80e96..562510f 100644 (file)
@@ -2,14 +2,8 @@
  * SHA1 T-PRF for EAP-FAST
  * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Alternatively, this software may be distributed under the terms of BSD
- * license.
- *
- * See README and COPYING for more details.
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
  */
 
 #include "includes.h"
@@ -72,5 +66,7 @@ int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
                len[0] = SHA1_MAC_LEN;
        }
 
+       os_memset(hash, 0, SHA1_MAC_LEN);
+
        return 0;
 }