Skip to content

Commit

Permalink
ws: Only add Organization field to certificate when machine-id is not…
Browse files Browse the repository at this point in the history
… blank

Fixes #7449
Closes #7450
  • Loading branch information
petervo authored and martinpitt committed Aug 4, 2017
1 parent 66de1a7 commit 3f235f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ws/cockpitcertificate.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ generate_subject (void)
cn = get_common_name ();

machine_id = get_machine_id ();
if (machine_id)
if (machine_id && !g_str_equal (machine_id, ""))
{
subject = g_strdup_printf ("/O=%s/CN=%s",
machine_id, cn);
Expand Down

0 comments on commit 3f235f2

Please sign in to comment.