]> git.ipfire.org Git - thirdparty/hostap.git/commit
Use os_zalloc() instead of os_malloc() and os_memset()
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 15:16:58 +0000 (17:16 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:42:07 +0000 (11:42 +0200)
commit89b48f7b95a6b5ccead65e41dce1e7597955d977
treedd5f54f3bfac0a875e309e162241375c10d2e1e9
parentfaebdeaa9ea5aefc7e45c4d52710c5d67cdbc89f
Use os_zalloc() instead of os_malloc() and os_memset()

Automatically updated with spatch and the following semantic patch:

@@
expression X;
expression E1;
statement S;
@@

- X = os_malloc(E1);
+ X = os_zalloc(E1);
(
  if (X == NULL) {
...
  }
- os_memset(X, 0, E1);
|
  if (X == NULL)
S
- os_memset(X, 0, E1);
)

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/wpa_ctrl.c