diff options
-rw-r--r-- | addons/ooh323c/src/ooSocket.c | 2 | ||||
-rw-r--r-- | main/rtp_engine.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/addons/ooh323c/src/ooSocket.c b/addons/ooh323c/src/ooSocket.c index 5f8f0f37b..6032dd0af 100644 --- a/addons/ooh323c/src/ooSocket.c +++ b/addons/ooh323c/src/ooSocket.c @@ -384,7 +384,7 @@ int ooSocketAccept (OOSOCKET socket, OOSOCKET *pNewSocket, if (*pNewSocket <= 0) return ASN_E_INVSOCKET; if (destAddr != 0) { - if ((host = ast_sockaddr_stringify_addr(&addr)) != NULL); + if ((host = ast_sockaddr_stringify_addr(&addr)) != NULL) strncpy(destAddr, host, strlen(host)); } if (destPort != 0) diff --git a/main/rtp_engine.c b/main/rtp_engine.c index e078b2400..226b229f2 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -2718,35 +2718,35 @@ int ast_rtp_dtls_cfg_parse(struct ast_rtp_dtls_cfg *dtls_cfg, const char *name, return -1; } } else if (!strcasecmp(name, "dtlscertfile")) { - ast_free(dtls_cfg->certfile); if (!ast_strlen_zero(value) && !ast_file_is_readable(value)) { ast_log(LOG_ERROR, "%s file %s does not exist or is not readable\n", name, value); return -1; } + ast_free(dtls_cfg->certfile); dtls_cfg->certfile = ast_strdup(value); } else if (!strcasecmp(name, "dtlsprivatekey")) { - ast_free(dtls_cfg->pvtfile); if (!ast_strlen_zero(value) && !ast_file_is_readable(value)) { ast_log(LOG_ERROR, "%s file %s does not exist or is not readable\n", name, value); return -1; } + ast_free(dtls_cfg->pvtfile); dtls_cfg->pvtfile = ast_strdup(value); } else if (!strcasecmp(name, "dtlscipher")) { ast_free(dtls_cfg->cipher); dtls_cfg->cipher = ast_strdup(value); } else if (!strcasecmp(name, "dtlscafile")) { - ast_free(dtls_cfg->cafile); if (!ast_strlen_zero(value) && !ast_file_is_readable(value)) { ast_log(LOG_ERROR, "%s file %s does not exist or is not readable\n", name, value); return -1; } + ast_free(dtls_cfg->cafile); dtls_cfg->cafile = ast_strdup(value); } else if (!strcasecmp(name, "dtlscapath") || !strcasecmp(name, "dtlscadir")) { - ast_free(dtls_cfg->capath); if (!ast_strlen_zero(value) && !ast_file_is_readable(value)) { ast_log(LOG_ERROR, "%s file %s does not exist or is not readable\n", name, value); return -1; } + ast_free(dtls_cfg->capath); dtls_cfg->capath = ast_strdup(value); } else if (!strcasecmp(name, "dtlssetup")) { if (!strcasecmp(value, "active")) { |