use pascal packed string to avoid invalid rdata error

This commit is contained in:
Ron Pedde 2004-11-30 04:17:32 +00:00
parent 57bb0851cb
commit 8d9587e4fc
2 changed files with 7 additions and 4 deletions

View File

@ -156,8 +156,8 @@ void rend_callback(void) {
NULL, /* domain */ NULL, /* domain */
NULL, /* host */ NULL, /* host */
msg.port, msg.port,
"Database ID=beddab1edeadbea7", /* text record */ "\034Database ID=beddab1edeadbea7", /* text record */
28, /* text record length */ 29, /* text record length */
rend_howl_reply, rend_howl_reply,
NULL, NULL,
&rend_oid)) != SW_OKAY) { &rend_oid)) != SW_OKAY) {

View File

@ -88,7 +88,10 @@
Change History (most recent first): Change History (most recent first):
$Log$ $Log$
Revision 1.21 2004/11/30 04:17:32 rpedde
use pascal packed string to avoid invalid rdata error
Revision 1.20 2004/11/30 04:04:17 rpedde Revision 1.20 2004/11/30 04:04:17 rpedde
database id txt record to store settings database id txt record to store settings
@ -406,7 +409,7 @@ void rend_callback(void) {
switch(msg.cmd) { switch(msg.cmd) {
case REND_MSG_TYPE_REGISTER: case REND_MSG_TYPE_REGISTER:
DPRINTF(E_DBG,L_REND,"Registering %s.%s (%d)\n",msg.name,msg.type,msg.port); DPRINTF(E_DBG,L_REND,"Registering %s.%s (%d)\n",msg.name,msg.type,msg.port);
RegisterOneService(msg.name,msg.type,"local.","Database ID=beddab1edeadbea7",28, RegisterOneService(msg.name,msg.type,"local.","\034Database ID=beddab1edeadbea7",29,
msg.port); msg.port);
rend_send_response(0); /* success */ rend_send_response(0); /* success */
break; break;