Project

General

Profile

Bug #2843

Updated by Tobias Brunner over 1 year ago

[scepclient.c:1117] -> [scepclient.c:1108] -> [scepclient.c:1120]: (error) Using pointer to local variable 'buf' that is out of scope.

Source code is

<pre>
<code class="c">


if (distinguishedName == NULL)

{

char buf[BUF_LEN];

int n = sprintf(buf, DEFAULT_DN);



/* set the common name to the hostname */

if (gethostname(buf + n, BUF_LEN - n) || strlen(buf) == n)

{

exit_scepclient("no hostname defined, use "

"--dn <distinguished name> option");

}

distinguishedName = buf;

}



DBG2(DBG_APP, "dn: '%s'", distinguishedName);

subject = identification_create_from_string(distinguishedName);
</code>
</pre>

Back