Commit 4d5a4f11 authored by Frank Barrus's avatar Frank Barrus
Browse files

Set port and tlsPort when retrieving configuration

(GetLog for KINETIC_DEVICE_INFO_TYPE_CONFIGURATION was returning 0 for both)
parent 3e3d075a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -140,6 +140,11 @@ static KineticLogInfo_Configuration * KineticLogInfo_GetConfiguration(
        cfg->protocolSourceHash = copy_str(gcfg->protocolsourcehash);
        if (cfg->protocolSourceHash == NULL) { goto cleanup; }

	if (gcfg->has_port)
		cfg->port = gcfg->port;
	if (gcfg->has_tlsport)
		cfg->tlsPort = gcfg->tlsport;

        cfg->numInterfaces = gcfg->n_interface;
        cfg->interfaces = calloc(cfg->numInterfaces, sizeof(*cfg->interfaces));
        if (cfg->interfaces == NULL) { goto cleanup; }