The Samba-Bugzilla – Attachment 10260 Details for
Bug 10798
crash in source3/smbd/notify.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
don't sort -1 elements.
notify.patch.txt (text/plain), 672 bytes, created by
Ken Harris
on 2014-09-06 00:59:00 UTC
(
hide
)
Description:
don't sort -1 elements.
Filename:
MIME Type:
Creator:
Ken Harris
Created:
2014-09-06 00:59:00 UTC
Size:
672 bytes
patch
obsolete
>diff --git a/source3/smbd/notify.c b/source3/smbd/notify.c >index dd4dc1a..995b3f2 100644 >--- a/source3/smbd/notify.c >+++ b/source3/smbd/notify.c >@@ -207,8 +207,10 @@ void change_notify_reply(struct smb_request *req, >* coalescing and thus dropping events in notify_marshall_changes. >*/ >- qsort(notify_buf->changes, notify_buf->num_changes, >- sizeof(*(notify_buf->changes)), compare_notify_change_events); >+ if(notify_buf->num_changes > 0) { >+ qsort(notify_buf->changes, notify_buf->num_changes, >+ sizeof(*(notify_buf->changes)), compare_notify_change_events); >+ } >if (!notify_marshall_changes(notify_buf->num_changes, max_param, >notify_buf->changes, &blob)) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10798
: 10260 |
10266