summaryrefslogtreecommitdiff
path: root/crypto/ocsp
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-06-27 16:44:58 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-06-27 16:44:58 +0000
commit2b8b5455829304396e38200c205612c4dc57c052 (patch)
treecc5cd6657453d80b7eafb3ba5cc4ef4fd66c176f /crypto/ocsp
parentfd3744ddb062b70bb370acec340acbac23f0bd98 (diff)
downloadsrc-test2-2b8b5455829304396e38200c205612c4dc57c052.tar.gz
src-test2-2b8b5455829304396e38200c205612c4dc57c052.zip
Notes
Diffstat (limited to 'crypto/ocsp')
-rwxr-xr-xcrypto/ocsp/ocsp_lib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/ocsp/ocsp_lib.c b/crypto/ocsp/ocsp_lib.c
index 27450811d720..441ccb7a9e4e 100755
--- a/crypto/ocsp/ocsp_lib.c
+++ b/crypto/ocsp/ocsp_lib.c
@@ -169,14 +169,14 @@ int OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pss
char *host, *port;
- /* dup the buffer since we are going to mess with it */
- buf = BUF_strdup(url);
- if (!buf) goto mem_err;
-
*phost = NULL;
*pport = NULL;
*ppath = NULL;
+ /* dup the buffer since we are going to mess with it */
+ buf = BUF_strdup(url);
+ if (!buf) goto mem_err;
+
/* Check for initial colon */
p = strchr(buf, ':');