* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: lex.c,v 1.13 2020/10/19 14:53:11 florian Exp $ */
+/* $Id: lex.c,v 1.14 2022/01/17 18:19:51 naddy Exp $ */
/*! \file */
FILE *stream;
char *curr, *prev;
size_t remaining;
- unsigned int saved_options;
isc_result_t result;
/*
isc_buffer_compact(source->pushback);
- saved_options = options;
-
curr = lex->data;
*curr = '\0';
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sockaddr.c,v 1.15 2020/12/21 11:41:09 florian Exp $ */
+/* $Id: sockaddr.c,v 1.16 2022/01/17 18:19:51 naddy Exp $ */
/*! \file */
#include <sys/types.h>
char pbuf[sizeof("65000")];
unsigned int plen;
isc_region_t avail;
- int error;
char tmp[NI_MAXHOST];
REQUIRE(sockaddr != NULL);
plen = strlen(pbuf);
INSIST(plen < sizeof(pbuf));
- error = getnameinfo((struct sockaddr *)sockaddr, sockaddr->ss_len,
- tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV);
+ if (getnameinfo((struct sockaddr *)sockaddr, sockaddr->ss_len,
+ tmp, sizeof(tmp), NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV) != 0)
+ return (ISC_R_FAILURE);
if (strlen(tmp) > isc_buffer_availablelength(target))
return (ISC_R_NOSPACE);
isc_buffer_putmem(target, tmp, strlen(tmp));