Search:

Type: Posts; User: stevfletchcom

Search: Search took 0.00 seconds.

  1. Are you referring to the for loop that copies the...

    Are you referring to the for loop that copies the contents of recvd into bufptr? Or something else?
  2. Thank you.

    Thanks for the help. This makes much more sense now.
  3. pointer and function argument question.

    I am wondering if it is possible to have a function dynamically allocate some memory, as a character array, then return a pointer to that memory to the caller through one or more of the function...
  4. Replies
    4
    Views
    8,868

    Thanks Salem, that did it.

    Thanks Salem, that did it.
  5. Replies
    4
    Views
    8,868

    I don't know for sure but the following is the...

    I don't know for sure but the following is the example code from the libmcrypt man page.

    It shows a differen't random number/character for each element of the IV array.



    #include...
  6. Replies
    4
    Views
    8,868

    mcrypt function

    I have a question about the mcrypt library usage that I am hoping someone can help with.

    I am finally getting the hang of c, I think and I have read the manual pages for libmcrypt and have created...
  7. Replies
    5
    Views
    3,243

    Thanks for all the suggestions. I just figured...

    Thanks for all the suggestions. I just figured out the problem. It seems I introduced an error into the configuration file parser which caused the username being passed to be empty.

    Things seem...
  8. Replies
    5
    Views
    3,243

    I know it is incorrect since the username I pass...

    I know it is incorrect since the username I pass in is root which is only being used as the username for testing purposes, in production it would be switched to a non privileged user after binding to...
  9. Replies
    5
    Views
    3,243

    getpwnam_r returns wrong uid.

    I have a function I call runas which is used to switch a program to another user. It is having trouble because it needs to be thread safe and reentrant but the reentrant version of getpwnam...
  10. Replies
    3
    Views
    4,283

    Another related question. Is there an easy way...

    Another related question.

    Is there an easy way to tell if a library function is threadsafe and or reentrant?

    I have some callback functions that need to be thread safe and reentrant, apparently...
  11. Replies
    3
    Views
    4,283

    Thanks for the reply. That helps out a lot. It...

    Thanks for the reply. That helps out a lot. It eliminates a large possible area of bugs for me in the code.
  12. Replies
    3
    Views
    4,283

    inet_ntop reentrant?

    I have been trying to find out if inet_ntop is reentrant or not. I seem to get varying responses on the different sites I found when googling.

    I am sure versions of the library matter but I am...
  13. IceDane, I am not sure if memset is the right...

    IceDane,

    I am not sure if memset is the right thing to do or not. What I am trying to do is cleanup the space being used by priv->envfrom for example, because in this same transaction there might...
  14. tabstop, Thank you for pointing that out. I...

    tabstop,

    Thank you for pointing that out. I think that has cleared up a big portion of the problems. I'll keep working and if anyone else has any suggestions please let me know.
  15. Yes smfi_setpriv keeps the pointer for passing on...

    Yes smfi_setpriv keeps the pointer for passing on to the next function in the chain, checking of headers, message body, etc.
    The priv data should be free'd at the end of all processing which is...
  16. Dino, The memory that is supposed to be freed...

    Dino,

    The memory that is supposed to be freed by these functions is being malloc()'ed by each user supplied callback function. I'll post one of the functions here to show you what they each do.
    ...
  17. Leaking Memory in a sendmail milter I wrote?

    I am hoping this is the right place to get some help with this. I have written a sendmail milter for the purpose of allowing pop users to securely submit spam/ham to our spam filter for learning. ...
Results 1 to 17 of 17