Changeset 8fd52de5ff1b33c4e303bd9c73fcd27898353757
- Timestamp:
- 05/22/09 21:37:40
(4 years ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1243028260 +0000
- git-parent:
[3e39e0360746c88b3b9df5bc1efbd6560a8a9939]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1243028260 +0000
- Message:
fixes #134
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r88a7178 |
r8fd52de |
|
| 367 | 367 | config = noit_conf_get_hash(listener_configs[i], "config"); |
|---|
| 368 | 368 | |
|---|
| 369 | | noit_listener(address, port, SOCK_STREAM, backlog, |
|---|
| 370 | | sslconfig, config, f, NULL); |
|---|
| 371 | | } |
|---|
| | 369 | if(noit_listener(address, port, SOCK_STREAM, backlog, |
|---|
| | 370 | sslconfig, config, f, NULL) != 0) { |
|---|
| | 371 | if(sslconfig) { |
|---|
| | 372 | noit_hash_destroy(sslconfig,free,free); |
|---|
| | 373 | free(sslconfig); |
|---|
| | 374 | } |
|---|
| | 375 | noit_hash_destroy(config,free,free); |
|---|
| | 376 | free(config); |
|---|
| | 377 | } |
|---|
| | 378 | } |
|---|
| | 379 | free(listener_configs); |
|---|
| 372 | 380 | } |
|---|
| 373 | 381 | int |
|---|
| r661f070 |
r8fd52de |
|
| 279 | 279 | bad_row: |
|---|
| 280 | 280 | PQclear(d->res); |
|---|
| | 281 | free(d); |
|---|
| 281 | 282 | return 0; |
|---|
| 282 | 283 | } |
|---|
| … | … | |
| 515 | 516 | strlcat(dsn, v, sizeof(dsn)); |
|---|
| 516 | 517 | } |
|---|
| | 518 | noit_hash_destroy(t, free, free); |
|---|
| | 519 | free(t); |
|---|
| 517 | 520 | |
|---|
| 518 | 521 | if(cq->dbh) { |
|---|
| r7be729c |
r8fd52de |
|
| 267 | 267 | } |
|---|
| 268 | 268 | stratcon_iep_line_processor(DS_OP_INSERT, NULL, line); |
|---|
| 269 | | free(line); |
|---|
| 270 | | } |
|---|
| | 269 | } |
|---|
| | 270 | free(query_configs); |
|---|
| 271 | 271 | } |
|---|
| 272 | 272 | |
|---|
| … | … | |
| 475 | 475 | newe->callback = stratcon_iep_submitter; |
|---|
| 476 | 476 | jc = calloc(1, sizeof(*jc)); |
|---|
| 477 | | jc->line = strdup(operand); |
|---|
| | 477 | jc->line = operand; |
|---|
| 478 | 478 | jc->remote = strdup(remote_str); |
|---|
| 479 | 479 | newe->closure = jc; |
|---|
| r9488f45 |
r8fd52de |
|
| 520 | 520 | config = noit_conf_get_hash(noit_configs[i], "config"); |
|---|
| 521 | 521 | |
|---|
| 522 | | noitL(noit_error, "initiating to %s\n", address); |
|---|
| | 522 | noitL(noit_error, "initiating to %s\n", address); |
|---|
| 523 | 523 | initiate_noit_connection(address, port, sslconfig, config, |
|---|
| 524 | 524 | handler, |
|---|
| 525 | 525 | handler_alloc ? handler_alloc() : handler_ctx, |
|---|
| 526 | 526 | handler_free); |
|---|
| 527 | | } |
|---|
| | 527 | noit_hash_destroy(sslconfig,free,free); |
|---|
| | 528 | free(sslconfig); |
|---|
| | 529 | noit_hash_destroy(config,free,free); |
|---|
| | 530 | free(config); |
|---|
| | 531 | } |
|---|
| | 532 | free(noit_configs); |
|---|
| 528 | 533 | } |
|---|
| 529 | 534 | void |
|---|