Replace plaintext password in ovf-env.xml with the hash.

This commit is contained in:
Reyk Floeter 2017-06-29 14:00:38 +02:00
commit 01e02ae0aa
2 changed files with 18 additions and 1 deletions

View file

@ -239,8 +239,10 @@ xml_end_element(void *data, const char *el)
fatal("missing element");
if (strcmp(xe->xe_tag, el) != 0)
fatal("unexpected closing tag: %s <> %s", el, xe->xe_tag);
if (xe->xe_data == NULL)
if (xe->xe_data == NULL) {
xe->xe_data = strdup("");
xe->xe_datalen = 0;
}
env->ox_cur = xe->xe_parent;
env->ox_depth--;