(pop_init): don't freehostent if ch == NULL

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6801 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-08-12 17:40:58 +00:00
parent e89db02b81
commit 78e40372d4

View File

@@ -363,7 +363,8 @@ pop_init(POP *p,int argcount,char **argmessage)
}
freehostent (ch_again);
}
freehostent (ch);
if(ch != NULL)
freehostent (ch);
/* Create input file stream for TCP/IP communication */
if ((p->input = fdopen(STDIN_FILENO,"r")) == NULL){