version 1.1.1.2, 2013/07/22 11:54:42
|
version 1.1.1.3, 2023/09/27 11:11:38
|
Line 30
|
Line 30
|
* |
* |
*/ |
*/ |
|
|
#if (HAVE_CONFIG_H) | #include "common.h" |
#include "../include/config.h" | |
#endif | |
#if (!(_WIN32) || (__CYGWIN__)) | |
#include "../include/libnet.h" | |
#else | |
#include "../include/win32/libnet.h" | |
#endif | |
|
|
uint16_t *all_lists; |
uint16_t *all_lists; |
|
|
Line 77 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
Line 70 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
if (!valid_token) |
if (!valid_token) |
{ |
{ |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"libnet_build_plist_chain: illegal token # %d (%c)\n", | "libnet_build_plist_chain: illegal token # %d (%c)", |
i + 1, |
i + 1, |
token_list[i]); |
token_list[i]); |
*plist = NULL; |
*plist = NULL; |
Line 91 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
Line 84 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
if (!(*plist)) |
if (!(*plist)) |
{ |
{ |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"libnet_build_plist_chain: malloc %s\n", strerror(errno)); | "libnet_build_plist_chain: malloc %s", strerror(errno)); |
*plist = NULL; |
*plist = NULL; |
return (-1); |
return (-1); |
} |
} |
Line 106 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
Line 99 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
{ |
{ |
all_lists = all_lists_tmp; |
all_lists = all_lists_tmp; |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"libnet_build_plist_chain: realloc %s\n", strerror(errno)); | "libnet_build_plist_chain: realloc %s", strerror(errno)); |
*plist = NULL; |
*plist = NULL; |
return(-1); |
return(-1); |
} |
} |
Line 130 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
Line 123 libnet_plist_chain_new(libnet_t *l, libnet_plist_t **p
|
if (!tmp->next) |
if (!tmp->next) |
{ |
{ |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
snprintf(l->err_buf, LIBNET_ERRBUF_SIZE, |
"libnet_build_plist_chain: malloc %s\n", strerror(errno)); | "libnet_build_plist_chain: malloc %s", strerror(errno)); |
/* |
/* |
* XXX - potential memory leak if other nodes are allocated |
* XXX - potential memory leak if other nodes are allocated |
* but not freed. |
* but not freed. |
Line 292 libnet_plist_chain_free(libnet_plist_t *plist)
|
Line 285 libnet_plist_chain_free(libnet_plist_t *plist)
|
return (1); |
return (1); |
} |
} |
|
|
/* EOF */ | /** |
| * Local Variables: |
| * indent-tabs-mode: nil |
| * c-file-style: "stroustrup" |
| * End: |
| */ |