(krb5_config_vget_next): handle c == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4305 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 1997 Kungliga Tekniska H<>gskolan
 | 
					 * Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
 | 
				
			||||||
 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
					 * (Royal Institute of Technology, Stockholm, Sweden). 
 | 
				
			||||||
 * All rights reserved. 
 | 
					 * All rights reserved. 
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
@@ -385,6 +385,9 @@ krb5_config_vget_next (krb5_context context,
 | 
				
			|||||||
    const char *p;
 | 
					    const char *p;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if(c == NULL)
 | 
					    if(c == NULL)
 | 
				
			||||||
 | 
						c = context->cf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (c == NULL)
 | 
				
			||||||
	return NULL;
 | 
						return NULL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (*pointer == NULL) {
 | 
					    if (*pointer == NULL) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user