summaryrefslogtreecommitdiff
path: root/netsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'netsock.c')
-rw-r--r--netsock.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/netsock.c b/netsock.c
index a7799e967..7c77e9315 100644
--- a/netsock.c
+++ b/netsock.c
@@ -186,10 +186,6 @@ struct ast_netsock *ast_netsock_bind(struct ast_netsock_list *list, struct io_co
sin.sin_family = AF_INET;
sin.sin_port = htons(defaultport);
tmp = ast_strdupa(bindinfo);
- if (!tmp) {
- ast_log(LOG_WARNING, "Out of memory!\n");
- return NULL;
- }
host = strsep(&tmp, ":");
port = tmp;