Lines Matching refs:hostbuf
383 char hostbuf[LINE_MAX * 2];
385 hostbuf[0] = '\0';
390 if (hostbuf[0] != '\0') {
391 if (strlcat(hostbuf, " ", sizeof(hostbuf)) >= sizeof(hostbuf))
395 if (strlcat(hostbuf, host, sizeof(hostbuf)) >= sizeof(hostbuf))
400 if (strlcat(hostbuf, defport, sizeof(hostbuf)) >= sizeof(hostbuf))
406 ldap_conf.host = estrdup(hostbuf);
410 errorx(1, "sudo_ldap_conf_add_ports: out of space expanding hostbuf");
425 char hostbuf[LINE_MAX];
431 hostbuf[0] = '\0';
449 if (hostbuf[0] != '\0') {
450 if (strlcat(hostbuf, " ", sizeof(hostbuf)) >= sizeof(hostbuf))
457 if (strlcat(hostbuf, host, sizeof(hostbuf)) >= sizeof(hostbuf))
464 if (strlcat(hostbuf, ":636", sizeof(hostbuf)) >= sizeof(hostbuf))
468 if (hostbuf[0] == '\0') {
486 ldap_conf.host = estrdup(hostbuf);
498 errorx(1, "sudo_ldap_parse_uri: out of space building hostbuf");