--- embedaddon/dhcp/minires/ns_sign.c 2012/10/09 09:06:54 1.1.1.1 +++ embedaddon/dhcp/minires/ns_sign.c 2013/07/22 12:54:39 1.1.1.1.2.1 @@ -22,7 +22,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_sign.c,v 1.1.1.1 2012/10/09 09:06:54 misho Exp $"; +static const char rcsid[] = "$Id: ns_sign.c,v 1.1.1.1.2.1 2013/07/22 12:54:39 misho Exp $"; #endif #if defined (TRACING) @@ -101,8 +101,6 @@ ns_sign(u_char *msg, unsigned *msglen, unsigned msgsiz cp, (unsigned)(eob - cp), NULL, NULL); else n = dn_comp("", cp, (unsigned)(eob - cp), NULL, NULL); - if (n < 0) - return ISC_R_NOSPACE; name = cp; cp += n; @@ -123,8 +121,6 @@ ns_sign(u_char *msg, unsigned *msglen, unsigned msgsiz } else n = dn_comp("", cp, (unsigned)(eob - cp), NULL, NULL); - if (n < 0) - return ISC_R_NOSPACE; alg = cp; cp += n; @@ -195,7 +191,7 @@ ns_sign(u_char *msg, unsigned *msglen, unsigned msgsiz n = dst_sign_data(SIG_MODE_FINAL, key, &ctx, NULL, 0, sig, *siglen); - if (n < 0) + if (n) return ISC_R_BADKEY; *siglen = n; } else