mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 13:19:59 -04:00
parent
992ed39167
commit
0146ff3740
1 changed files with 7 additions and 3 deletions
|
|
@ -678,13 +678,13 @@ sig_fromfile(char *path, isc_buffer_t *iscbuf) {
|
|||
--len;
|
||||
continue;
|
||||
} else if (len < 2U)
|
||||
return (1);
|
||||
goto err;
|
||||
if (('0' <= *p) && (*p <= '9'))
|
||||
val = *p - '0';
|
||||
else if (('A' <= *p) && (*p <= 'F'))
|
||||
val = *p - 'A' + 10;
|
||||
else
|
||||
return (1);
|
||||
goto err;
|
||||
++p;
|
||||
val <<= 4;
|
||||
--len;
|
||||
|
|
@ -693,13 +693,17 @@ sig_fromfile(char *path, isc_buffer_t *iscbuf) {
|
|||
else if (('A' <= *p) && (*p <= 'F'))
|
||||
val |= (*p - 'A' + 10);
|
||||
else
|
||||
return (1);
|
||||
goto err;
|
||||
++p;
|
||||
--len;
|
||||
isc_buffer_putuint8(iscbuf, val);
|
||||
}
|
||||
(void) free(buf);
|
||||
return(0);
|
||||
|
||||
err:
|
||||
(void) free(buf);
|
||||
return (1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue