Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash because of uninitialized critical session (When using SASL) #128

Merged
merged 5 commits into from Apr 4, 2014

Conversation

Dunemaster
Copy link
Contributor

No description provided.

@@ -42,15 +42,18 @@
static int sasl_use_count = 0;

#ifdef LIBETPAN_REENTRANT

void mailsasl_init_lock(){
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you move it out of #if defined WIN32?
This function is only needed on win32.

@Dunemaster
Copy link
Contributor Author

I wanted to put mailsasl_init_lock() in line with other lock init functions: mmapstring_init_lock() and mailstream_ssl_init_lock(). Both of them are need only on windows, but declared on all platforms

@dinhvh
Copy link
Owner

dinhvh commented Apr 4, 2014

Ok. To match other platforms, could you move the header declaration in a mailsasl_private.h file?
That file won't be a public header then.
Thanks!

@Dunemaster
Copy link
Contributor Author

Done

@dinhvh
Copy link
Owner

dinhvh commented Apr 4, 2014

Great! Thanks!

@dinhvh
Copy link
Owner

dinhvh commented Apr 4, 2014

Wait for continuous integration to give me a go :)

dinhvh added a commit that referenced this pull request Apr 4, 2014
Crash because of uninitialized critical session (When using SASL)
@dinhvh dinhvh merged commit 732faa9 into dinhvh:master Apr 4, 2014
@Dunemaster Dunemaster deleted the fixSASLwindows branch April 4, 2014 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants