version 1.1.1.1, 2013/07/29 19:37:40
|
version 1.1.1.2, 2014/06/15 16:31:38
|
Line 1
|
Line 1
|
/* dnsmasq is Copyright (c) 2000-2013 Simon Kelley | /* dnsmasq is Copyright (c) 2000-2014 Simon Kelley |
|
|
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
Line 70 void *put_opt6(void *data, size_t len)
|
Line 70 void *put_opt6(void *data, size_t len)
|
{ |
{ |
void *p; |
void *p; |
|
|
if ((p = expand(len))) | if ((p = expand(len)) && data) |
memcpy(p, data, len); |
memcpy(p, data, len); |
| |
return p; |
return p; |
} |
} |
|
|