File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,6 @@ static const char rcsid[] = "$Id: hesiod.c,v 1.30 2002-04-03 21:40:55 ghudson Ex
81
81
#define T_TXT 16
82
82
#endif
83
83
84
- /* Defaults if the configuration file is not present. */
85
- #define DEF_RHS ".athena.mit.edu"
86
- #define DEF_LHS ".ns"
87
-
88
84
/* Maximum size of a Hesiod response from the DNS. */
89
85
#define MAX_HESRESP 1024
90
86
@@ -291,20 +287,7 @@ static int read_config_file(struct hesiod_p *ctx, const char *filename)
291
287
fp = fopen (filename , "r" );
292
288
if (!fp )
293
289
{
294
- /* Use compiled in default domain names. */
295
- ctx -> lhs = malloc (strlen (DEF_LHS ) + 1 );
296
- ctx -> rhs = malloc (strlen (DEF_RHS ) + 1 );
297
- if (ctx -> lhs && ctx -> rhs )
298
- {
299
- strcpy (ctx -> lhs , DEF_LHS );
300
- strcpy (ctx -> rhs , DEF_RHS );
301
- return 0 ;
302
- }
303
- else
304
- {
305
- errno = ENOMEM ;
306
- return -1 ;
307
- }
290
+ return -1 ;
308
291
}
309
292
310
293
ctx -> lhs = NULL ;
You can’t perform that action at this time.
0 commit comments