use krb5_set_error_message
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23309 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		@@ -46,13 +46,13 @@ string_to_list (krb5_context context, const char *s, krb5_realm **list)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    *list = malloc (2 * sizeof(**list));
 | 
					    *list = malloc (2 * sizeof(**list));
 | 
				
			||||||
    if (*list == NULL) {
 | 
					    if (*list == NULL) {
 | 
				
			||||||
	krb5_set_error_string (context, "malloc: out of memory");
 | 
						krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
 | 
				
			||||||
	return ENOMEM;
 | 
						return ENOMEM;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    (*list)[0] = strdup (s);
 | 
					    (*list)[0] = strdup (s);
 | 
				
			||||||
    if ((*list)[0] == NULL) {
 | 
					    if ((*list)[0] == NULL) {
 | 
				
			||||||
	free (*list);
 | 
						free (*list);
 | 
				
			||||||
	krb5_set_error_string (context, "malloc: out of memory");
 | 
						krb5_set_error_message(context, ENOMEM, "malloc: out of memory");
 | 
				
			||||||
	return ENOMEM;
 | 
						return ENOMEM;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    (*list)[1] = NULL;
 | 
					    (*list)[1] = NULL;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user