diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4dd27f8a0329528320bcdbdf49db853d51e76cd2..b74bc2912c048f96d3664855023d397cd722d1c4 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7369,11 +7369,10 @@ static struct sip_pvt *find_call(struct sip_request *req, struct ast_sockaddr *a
 
 		/* If this is a Request, set the Via and Authorization header arguments */
 		if (req->method != SIP_RESPONSE) {
-			const char *auth_header;
 			args.ruri = REQ_OFFSET_TO_STR(req, rlPart2);
 			get_viabranch(ast_strdupa(get_header(req, "Via")), (char **) &args.viasentby, (char **) &args.viabranch);
-			auth_header = get_header(req, "WWW-Authenticate");
-			if (!ast_strlen_zero(auth_header)) {
+			if (!ast_strlen_zero(get_header(req, "Authorization")) ||
+				!ast_strlen_zero(get_header(req, "Proxy-Authorization"))) {
 				args.authentication_present = 1;
 			}
 		}
diff --git a/main/netsock2.c b/main/netsock2.c
index 52b8a8d391dcc784469f2de95e71382055c9014c..929f4b33711c89e75604b1aa84534891463d1728 100644
--- a/main/netsock2.c
+++ b/main/netsock2.c
@@ -201,8 +201,10 @@ int ast_sockaddr_parse(struct ast_sockaddr *addr, const char *str, int flags)
 	hints.ai_flags = AI_NUMERICHOST;
 #endif
 	if ((e = getaddrinfo(host, port, &hints, &res))) {
-		ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n",
-			host, S_OR(port, "(null)"), gai_strerror(e));
+		if (e != EAI_NONAME) { /* if this was just a host name rather than a ip address, don't print error */
+			ast_log(LOG_ERROR, "getaddrinfo(\"%s\", \"%s\", ...): %s\n",
+				host, S_OR(port, "(null)"), gai_strerror(e));
+		}
 		return 0;
 	}