Skip to content

Commit

Permalink
BugFix segfault caused due to missing name param
Browse files Browse the repository at this point in the history
If a repository definition is missing the name parameter
the repositroy is later processed and a segfault occurs.

Set the repository name to the repo stanza in the event that
the name parameter is missing.

fixes #400
  • Loading branch information
AZaugg authored and oliverkurth committed Mar 14, 2023
1 parent 2773d1a commit d24e1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/repolist.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ TDNFLoadReposFromFile(
dwError = TDNFReadKeyValue(
pSections,
TDNF_REPO_KEY_NAME,
NULL,
pszRepo,
&pRepo->pszName);
BAIL_ON_TDNF_ERROR(dwError);

Expand Down

0 comments on commit d24e1b1

Please sign in to comment.