|
|
| version 1.1, 2012/02/21 22:30:18 | version 1.1.1.1.2.1, 2013/07/22 12:54:39 |
|---|---|
| Line 96 res_nmkupdate(res_state statp, | Line 96 res_nmkupdate(res_state statp, |
| ns_updrec *rrecp_in, double *bp, unsigned *blp) { | ns_updrec *rrecp_in, double *bp, unsigned *blp) { |
| ns_updrec *rrecp_start = rrecp_in; | ns_updrec *rrecp_start = rrecp_in; |
| HEADER *hp; | HEADER *hp; |
| u_char *cp, *sp1, *sp2; | u_char *cp, *sp2; |
| const unsigned char *startp, *endp; | const unsigned char *startp, *endp; |
| int n, i, soanum, multiline; | int n, i, soanum, multiline; |
| ns_updrec *rrecp; | ns_updrec *rrecp; |
| Line 123 res_nmkupdate(res_state statp, | Line 123 res_nmkupdate(res_state statp, |
| hp->id = htons(++statp->id); | hp->id = htons(++statp->id); |
| hp->opcode = ns_o_update; | hp->opcode = ns_o_update; |
| hp->rcode = NOERROR; | hp->rcode = NOERROR; |
| sp1 = buf + 2*INT16SZ; /* save pointer to zocount */ | |
| cp = buf + HFIXEDSZ; | cp = buf + HFIXEDSZ; |
| buflen -= HFIXEDSZ; | buflen -= HFIXEDSZ; |
| dpp = dnptrs; | dpp = dnptrs; |
| Line 658 res_nmkupdate(res_state statp, | Line 657 res_nmkupdate(res_state statp, |
| &startp, endp)) < 0) | &startp, endp)) < 0) |
| return (-1); | return (-1); |
| certlen = b64_pton(buf2, buf3, sizeof(buf3)); | certlen = b64_pton(buf2, buf3, sizeof(buf3)); |
| if (certlen < 0) | |
| return (-1); | |
| ShrinkBuffer(certlen); | ShrinkBuffer(certlen); |
| memcpy(cp, buf3, certlen); | memcpy(cp, buf3, certlen); |
| cp += certlen; | cp += certlen; |