Warmcat homepage andy@warmcat.com
libwebsockets
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1756236726, "reponame":"openssl", "desc":"OpenSSL", "owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://warmcat.com/repo/openssl", "f":3, "items": [ {"schema":"libjg2-1", "cid":"9d961f396ab7ba1db178188a53b7d3aa", "commit": {"type":"commit", "time": 1465396203, "time_ofs": 60, "oid_tree": { "oid": "767c5e1b25946fb6bb43cc1d17df9bdedf091fba", "alias": []}, "oid":{ "oid": "01d0e241dc4184a5a1f222f8eccdad11da12305a", "alias": []}, "msg": "crypto/x509/x509_vpm.c: Simplify int_x509_param_set1()", "sig_commit": { "git_time": { "time": 1465396203, "offset": 60 }, "name": "Matt Caswell", "email": "matt@openssl.org", "md5": "10f7b441a32d5790efad9fc68cae4af2" }, "sig_author": { "git_time": { "time": 1464295111, "offset": -240 }, "name": "Kurt Cancemi", "email": "kurt@x64architecture.com", "md5": "2fd0c3f17efded066208e74d8e7f307e" }}, "body": "crypto/x509/x509_vpm.c: Simplify int_x509_param_set1()\n\nThis change also avoids calling strlen twice when srclen is 0\n\nReviewed-by: Rich Salz \u003crsalz@openssl.org\u003e\nReviewed-by: Matt Caswell \u003cmatt@openssl.org\u003e\n" , "diff": "diff --git a/crypto/x509/x509_vpm.c b/crypto/x509/x509_vpm.c\nindex f7ecdec..194d09b 100644\n--- a/crypto/x509/x509_vpm.c\n+++ b/crypto/x509/x509_vpm.c\n@@ -259,12 +259,11 @@ static int int_x509_param_set1(char **pdest, size_t *pdestlen,\n {\n void *tmp;\n if (src) {\n- if (srclen \u003d\u003d 0) {\n- tmp \u003d OPENSSL_strdup(src);\n+ if (srclen \u003d\u003d 0)\n srclen \u003d strlen(src);\n- } else\n- tmp \u003d OPENSSL_memdup(src, srclen);\n- if (!tmp)\n+\n+ tmp \u003d OPENSSL_memdup(src, srclen);\n+ if (tmp \u003d\u003d NULL)\n return 0;\n } else {\n tmp \u003d NULL;\n@@ -272,7 +271,7 @@ static int int_x509_param_set1(char **pdest, size_t *pdestlen,\n }\n OPENSSL_free(*pdest);\n *pdest \u003d tmp;\n- if (pdestlen)\n+ if (pdestlen !\u003d NULL)\n *pdestlen \u003d srclen;\n return 1;\n }\n","s":{"c":1756236726,"u": 5594}} ],"g": 6722,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}