Commit 84ac625ddd1135755030dfb01b2be965e7cacb2f

Brad Morgan 2013-05-15T12:51:40

Added GITERR_CHECK_ALLOC

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index b88b848..a312c8d 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -336,6 +336,7 @@ static int _git_ssh_setup_conn(
 		if (git_ssh_extract_url_parts(&host, &user, url) < 0)
 			goto on_error;
 		port = git__strdup(default_port);
+		GITERR_CHECK_ALLOC(port);
 	}
 	
 	if (gitno_connect(&s->socket, host, port, 0) < 0)