/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/mandos-client.c

  • Committer: Teddy Hogeborn
  • Date: 2009-09-06 05:37:34 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090906053734-uf180lq30ivv4nfy
* plugin-runner.c (getplugin, add_environment, main): Handle EINTR
                                                      properly.

* plugins.d/mandos-client.c (start_mandos_communication): Bug fix:
  move out "decrypted_buffer_size" to where it is needed.

* plugins.d/splashy.c (termination_handler): Save signal received.
  (main): Check return value from "sigaddset()".

Show diffs side-by-side

added added

removed removed

Lines of Context:
804
804
  }
805
805
  
806
806
  if(buffer_length > 0){
 
807
    ssize_t decrypted_buffer_size;
807
808
    decrypted_buffer_size = pgp_packet_decrypt(buffer,
808
809
                                               buffer_length,
809
810
                                               &decrypted_buffer);
810
811
    if(decrypted_buffer_size >= 0){
811
 
      ssize_t decrypted_buffer_size;
812
812
      
813
813
      written = 0;
814
814
      while(written < (size_t) decrypted_buffer_size){