/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/mandosclient.c

  • Committer: Teddy Hogeborn
  • Date: 2008-07-21 02:33:00 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080721023300-c4t0cq7sxit973py
* plugins.d/Makefile: Removed

* plugins.d/mandosclient.c (start_mandos_communcation): Bug fix: write
                                                        server IP
                                                        address to
                                                        "to" struct.

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
int start_mandos_communcation(char *ip, uint16_t port){
315
315
  int ret, tcp_sd;
316
316
  struct sockaddr_in6 to;
317
 
  struct in6_addr ip_addr;
318
317
  encrypted_session es;
319
318
  char *buffer = NULL;
320
319
  char *decrypted_buffer;
346
345
  
347
346
  memset(&to,0,sizeof(to));
348
347
  to.sin6_family = AF_INET6;
349
 
  ret = inet_pton(AF_INET6, ip, &ip_addr);
 
348
  ret = inet_pton(AF_INET6, ip, &to.sin6_addr);
350
349
  if (ret < 0 ){
351
350
    perror("inet_pton");
352
351
    return -1;