• M
    storage: Properly terminate secrets · bfd91dc0
    Michal Privoznik 提交于
    The virSecretGetSecretString() helper looks up a secret for given
    pool and returns its value in @secret_value and its length in
    @secret_value_size. However, the trailing '\0' is not included in
    either of the variables. This is because usually the value of the
    secret is passed to some encoder (usually base64 encoder) where
    the trailing zero must not be accounted for.
    
    However, in two places we actually want the string as we don't
    process it any further.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    Reviewed-by: NJán Tomko <jtomko@redhat.com>
    bfd91dc0
storage_backend_iscsi_direct.c 21.6 KB