(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:
@@ -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){
|
||||
|
Reference in New Issue
Block a user