osbase/oci/osimage: fix possible nil dereference

Because a double pointer was passed to json.Unmarshal, it could set
config to nil when the json is "null", resulting in a nil pointer
dereference.

Change-Id: I93077e1cafd8c4e3d0a47d9a4f2321e2ea005d58
Reviewed-on: https://review.monogon.dev/c/monogon/+/4487
Tested-by: Jenkins CI
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
diff --git a/osbase/oci/osimage/osimage.go b/osbase/oci/osimage/osimage.go
index ac9721a..90aabc1 100644
--- a/osbase/oci/osimage/osimage.go
+++ b/osbase/oci/osimage/osimage.go
@@ -44,7 +44,7 @@
 		return nil, fmt.Errorf("failed to read config: %w", err)
 	}
 	config := &Config{}
-	err = json.Unmarshal(rawConfig, &config)
+	err = json.Unmarshal(rawConfig, config)
 	if err != nil {
 		return nil, fmt.Errorf("failed to parse config: %w", err)
 	}