de-fatal mac.c

This commit is contained in:
Markus Friedl
2012-02-19 18:33:16 +01:00
parent c0941f9d24
commit f42361df22

View File

@@ -30,7 +30,6 @@
#include <string.h>
#include <signal.h>
#include "xmalloc.h"
#include "log.h"
#include "cipher.h"
#include "buffer.h"
@@ -184,7 +183,7 @@ mac_valid(const char *names)
if (names == NULL || strcmp(names, "") == 0)
return 0;
if ((maclist = cp = xstrdup(names)) == NULL)
if ((maclist = cp = strdup(names)) == NULL)
return 0;
for ((p = strsep(&cp, MAC_SEP)); p && *p != '\0';
(p = strsep(&cp, MAC_SEP))) {