summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremaldona%redhat.com <devnull@localhost>2013-02-13 19:42:45 +0000
committeremaldona%redhat.com <devnull@localhost>2013-02-13 19:42:45 +0000
commit8f124ab148162dceab5c082b8831bf64f26d7f23 (patch)
tree5058f00a8c03522439532c5b6b12767cf478f0cb
parent82f2d227a4910b8f4f650a0fbeb14da84ace5f70 (diff)
downloadnss-hg-8f124ab148162dceab5c082b8831bf64f26d7f23.tar.gz
Bug 840714 - certutil -a does not produce ASCII output, r=bsmith
-rw-r--r--security/nss/cmd/certutil/certutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/cmd/certutil/certutil.c b/security/nss/cmd/certutil/certutil.c
index f8f28ee24..a3358ab3e 100644
--- a/security/nss/cmd/certutil/certutil.c
+++ b/security/nss/cmd/certutil/certutil.c
@@ -313,7 +313,7 @@ CertReq(SECKEYPrivateKey *privk, SECKEYPublicKey *pubk, KeyType keyType,
PRUint32 trailerLen = PL_strlen(trailer);
SECITEM_AllocItem(NULL, result,
headerLen + obufLen + trailerLen);
- if (!result->data) {
+ if (result->data) {
PORT_Memcpy(result->data, header, headerLen);
PORT_Memcpy(result->data + headerLen, obuf, obufLen);
PORT_Memcpy(result->data + headerLen + obufLen,